*/ 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 */ 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(), ]; } }