*/ final class FestivalSectionFactory extends Factory { /** @return array */ public function definition(): array { return [ 'event_id' => Event::factory(), 'name' => fake()->randomElement([ 'Horeca', 'Backstage', 'Overig', 'Entertainment', 'Security', 'Techniek', ]), 'type' => 'standard', 'sort_order' => fake()->numberBetween(1, 5), 'responder_self_checkin' => true, 'crew_auto_accepts' => false, ]; } public function withSortOrder(int $order): static { return $this->state(fn () => ['sort_order' => $order]); } public function crossEvent(): static { return $this->state(fn () => ['type' => 'cross_event']); } }