*/ class ParticipantFactory extends Factory { /** * The current token being used by the factory. */ protected static ?string $token; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'id' => fake()->unique()->randomNumber(), 'token' => Str::random(32), 'user_id' => fake()->unique()->randomNumber(), ]; } }