*/ class HorarioRecesoFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = HorarioReceso::class; /** * Define the model's default state. * * @return array */ public function definition(): array { $start = $this->faker->time('H:i:s', '12:00:00'); $end = $this->faker->time('H:i:s', '14:00:00'); return [ 'comienzo' => $start, 'fin' => $end, 'diadeatencion_id' => DiaDeAtencion::factory(), ]; } }