mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
✨ Add NIP-05 handle management: Introduce migration, API route, and Livewire updates to support NIP-05 handle verification.
⚡ Enhance Nostr fetcher: Refactor profile data merging logic for improved efficiency and accuracy.
🛠
This commit is contained in:
37
database/factories/PaymentEventFactory.php
Normal file
37
database/factories/PaymentEventFactory.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\PaymentEvent>
|
||||
*/
|
||||
class PaymentEventFactory extends Factory
|
||||
{
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'einundzwanzig_pleb_id' => \App\Models\EinundzwanzigPleb::factory(),
|
||||
'year' => fake()->year(),
|
||||
'event_id' => fake()->uuid(),
|
||||
'amount' => 21000,
|
||||
'paid' => false,
|
||||
'btc_pay_invoice' => null,
|
||||
];
|
||||
}
|
||||
|
||||
public function paid(): self
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'paid' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
public function withYear(int $year): self
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'year' => $year,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user