mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🎨 **Style:** Fixed indentation inconsistencies in meetup_user migration file.
🛠️ **Factory:** Created factories for `TwitterAccount`, `EmailCampaign`, `EmailTexts`, and `BookCase`. ✨ **Helper:** Added `NostrHelper` with methods for generating fake/mocked Nostr data. ⬆️ **Dependencies:** Updated multiple Composer dependencies including `laravel/framework`, `astrotomic/laravel-translatable`, and others to their latest versions.
This commit is contained in:
@@ -2,29 +2,37 @@
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\RecurrenceType;
|
||||
use App\Models\Meetup;
|
||||
use App\Models\MeetupEvent;
|
||||
use App\Models\User;
|
||||
use Database\Factories\Helpers\NostrHelper;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\MeetupEvent>
|
||||
* @extends Factory<MeetupEvent>
|
||||
*/
|
||||
class MeetupEventFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
protected $model = MeetupEvent::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'meetup_id' => \App\Models\Meetup::factory(),
|
||||
'start' => now()->addWeek(),
|
||||
'meetup_id' => Meetup::factory(),
|
||||
'start' => now()->addDays(fake()->numberBetween(1, 60)),
|
||||
'location' => fake()->address(),
|
||||
'description' => fake()->paragraph(),
|
||||
'link' => fake()->url(),
|
||||
'attendees' => [],
|
||||
'might_attendees' => [],
|
||||
'created_by' => \App\Models\User::factory(),
|
||||
'nostr_status' => NostrHelper::fakeNostrEventStatus(),
|
||||
'recurrence_type' => fake()->boolean(40) ? RecurrenceType::Monthly : null,
|
||||
'recurrence_day_of_week' => null,
|
||||
'recurrence_day_position' => null,
|
||||
'recurrence_interval' => 1,
|
||||
'recurrence_end_date' => null,
|
||||
'created_by' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user