35 lines
855 B
PHP
35 lines
855 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Catalog\Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
use Modules\Catalog\Models\Destination;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends Factory<Destination>
|
||
|
|
*/
|
||
|
|
class DestinationFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'name' => fake()->city(),
|
||
|
|
'mm_name' => fake()->city(),
|
||
|
|
'region' => fake()->state(),
|
||
|
|
'description' => fake()->sentence(),
|
||
|
|
'mm_description' => null,
|
||
|
|
'meta_keyword' => null,
|
||
|
|
'meta_description' => null,
|
||
|
|
'latitude' => fake()->latitude(),
|
||
|
|
'longitude' => fake()->longitude(),
|
||
|
|
'is_active' => true,
|
||
|
|
'popular' => false,
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|