*/ class WarehouseFactory extends Factory { protected $model = Warehouse::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->company() . ' Warehouse', 'address_line1' => $this->faker->streetAddress(), 'address_line2' => $this->faker->secondaryAddress(), 'postal_code' => $this->faker->postcode(), 'city' => $this->faker->city(), 'country_code' => 'FR', ]; } }