ldc-cocotte/database/factories/ShopFactory.php
2026-10-27 09:58:12 +01:00

44 lines
983 B
PHP

<?php
declare(strict_types=1);
namespace Database\Factories;
use App\Models\Shop;
use Illuminate\Database\Eloquent\Factories\Factory;
use Ramsey\Uuid\Uuid;
/**
* @extends Factory<Shop>
*/
class ShopFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Shop::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'id' => (string) Uuid::uuid7(),
'name' => fake()->company(),
'address' => fake()->streetAddress(),
'postcode' => fake()->postcode(),
'city' => fake()->city(),
'phone' => fake()->phoneNumber(),
'latitude' => (string) fake()->latitude(),
'longitude' => (string) fake()->longitude(),
'default' => false,
];
}
}