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