applicant-site/database/factories/DirectionFactory.php

22 lines
496 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class DirectionFactory extends Factory
{
public function definition(): array
{
return [
'name' => fake()->name(),
'description' => fake()->text(),
'slug' => fake()->slug(),
'code' => fake()->text(50),
'position' => fake()->randomDigit(),
'department_id' => 1,
'education_level_id' => 1
];
}
}