38 lines
881 B
PHP
38 lines
881 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\DiaDeAtencion;
|
|
use App\Models\HorarioDeAtencion;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\HorarioDeAtencion>
|
|
*/
|
|
class HorarioDeAtencionFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = HorarioDeAtencion::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
$start = $this->faker->time('H:i:s', '09:00:00');
|
|
$end = $this->faker->time('H:i:s', '18:00:00');
|
|
|
|
return [
|
|
'horariocomienzo' => $start,
|
|
'horariofin' => $end,
|
|
'diadeatencion_id' => DiaDeAtencion::factory(),
|
|
];
|
|
}
|
|
}
|