mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
34 lines
697 B
PHP
34 lines
697 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
use App\Models\Event;
|
|
use App\Models\Participant;
|
|
use App\Models\Registration;
|
|
|
|
class RegistrationFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Registration::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'event_id' => Event::factory(),
|
|
'participant_id' => Participant::factory(),
|
|
'active' => $this->faker->boolean,
|
|
];
|
|
}
|
|
}
|