*/ class PhotoFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'category' => PhotoCategory::Apartment, 'alt_text' => fake()->sentence(3), 'is_published' => true, 'sort_order' => 0, ]; } }