*/ class PlaceFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Place::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->company, 'description' => $this->faker->sentence, 'latitude' => $this->faker->latitude, 'longitude' => $this->faker->longitude, 'external_urls' => $this->faker->url, ]; } }