36 lines
770 B
PHP
36 lines
770 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Agenda;
|
|
use App\Models\Dia;
|
|
use App\Models\DiaDeAtencion;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\DiaDeAtencion>
|
|
*/
|
|
class DiaDeAtencionFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = DiaDeAtencion::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'descripcion' => $this->faker->sentence(3),
|
|
'agenda_id' => Agenda::factory(),
|
|
'dia_id' => Dia::factory(),
|
|
];
|
|
}
|
|
}
|