32 lines
553 B
PHP
32 lines
553 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Participant;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @extends Factory<Participant>
|
|
*/
|
|
class ParticipantFactory extends Factory
|
|
{
|
|
/**
|
|
* The current token being used by the factory.
|
|
*/
|
|
protected static ?string $token;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'token' => uniqid(),
|
|
];
|
|
}
|
|
|
|
}
|