26 lines
627 B
PHP
26 lines
627 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class DirectionFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
$name = fake()->name();
|
|
$code = fake()->text(10);
|
|
return [
|
|
'name' => $name,
|
|
'full_name' => "{$code} {$name}",
|
|
'description' => fake()->text(),
|
|
'slug' => fake()->slug(),
|
|
'code' => $code,
|
|
'position' => fake()->randomDigit(),
|
|
'department_id' => 1,
|
|
'education_level_id' => 1,
|
|
'education_form_id' => 1,
|
|
];
|
|
}
|
|
}
|