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