*/ class ReviewFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'property_id' => Property::factory(), 'status' => ReviewStatus::Pending, 'source' => 'website', 'rating' => 5, 'body' => fake()->paragraph(), 'display_name' => fake()->firstName().' '.fake()->randomLetter().'.', 'publish_consent' => true, 'stayed_on' => fake()->dateTimeBetween('-1 year')->format('Y-m-d'), ]; } }