*/ final class PersonFactory extends Factory { /** @return array */ public function definition(): array { return [ 'event_id' => Event::factory(), 'crowd_type_id' => CrowdType::factory(), 'name' => fake('nl_NL')->name(), 'email' => fake()->unique()->safeEmail(), 'phone' => fake('nl_NL')->phoneNumber(), 'status' => 'pending', 'is_blacklisted' => false, 'custom_fields' => null, ]; } public function approved(): static { return $this->state(fn () => ['status' => 'approved']); } }