*/ class ExtraFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'property_id' => Property::factory(), 'name' => fake()->randomElement(['Bettwäsche', 'Handtuchpaket', 'Kinderbett']), 'price' => fake()->numberBetween(5, 25) * 100, 'pricing' => ExtraPricing::PerItem, 'is_active' => true, 'sort_order' => 0, ]; } }