35 lines
779 B
PHP
35 lines
779 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Agenda;
|
|
use App\Models\Feriado;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Feriado>
|
|
*/
|
|
class FeriadoFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Feriado::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'fecha' => $this->faker->dateTimeBetween('-1 year', '+1 year')->format('Y-m-d'),
|
|
'descripcion' => $this->faker->sentence(3),
|
|
'agenda_id' => Agenda::factory(),
|
|
];
|
|
}
|
|
}
|