30 lines
710 B
PHP
30 lines
710 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Routing\Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
use Modules\Catalog\Models\Destination;
|
||
|
|
use Modules\Routing\Models\PopularRoute;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends Factory<PopularRoute>
|
||
|
|
*/
|
||
|
|
class PopularRouteFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'from_destination_id' => Destination::factory(),
|
||
|
|
'to_destination_id' => Destination::factory(),
|
||
|
|
'description' => fake()->sentence(),
|
||
|
|
'mm_description' => fake()->sentence(),
|
||
|
|
'is_active' => true,
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|