Roman_applicant-site/database/factories/DirectionFactory.php

26 lines
627 B
PHP
Raw Normal View History

2024-02-10 11:23:38 +03:00
<?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);
2024-02-10 11:23:38 +03:00
return [
'name' => $name,
'full_name' => "{$code} {$name}",
'description' => fake()->text(),
'slug' => fake()->slug(),
'code' => $code,
'position' => fake()->randomDigit(),
'department_id' => 1,
2024-02-15 09:58:01 +03:00
'education_level_id' => 1,
'education_form_id' => 1,
2024-02-10 11:23:38 +03:00
];
}
}