mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
1f0bfba0d3
🛠️ **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.
26 lines
532 B
PHP
26 lines
532 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\CourseEvent;
|
|
use App\Models\Participant;
|
|
use App\Models\Registration;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Registration>
|
|
*/
|
|
class RegistrationFactory extends Factory
|
|
{
|
|
protected $model = Registration::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'course_event_id' => CourseEvent::factory(),
|
|
'participant_id' => Participant::factory(),
|
|
'active' => true,
|
|
];
|
|
}
|
|
}
|