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
|
|
|
|
{
|
2024-02-28 15:05:41 +03:00
|
|
|
$name = fake()->name();
|
|
|
|
$code = fake()->text(10);
|
2024-02-10 11:23:38 +03:00
|
|
|
return [
|
2024-02-28 15:05:41 +03:00
|
|
|
'name' => $name,
|
|
|
|
'full_name' => "{$code} {$name}",
|
2024-02-12 10:58:48 +03:00
|
|
|
'description' => fake()->text(),
|
|
|
|
'slug' => fake()->slug(),
|
2024-02-28 15:05:41 +03:00
|
|
|
'code' => $code,
|
2024-02-12 10:58:48 +03:00
|
|
|
'position' => fake()->randomDigit(),
|
|
|
|
'department_id' => 1,
|
2024-02-15 09:58:01 +03:00
|
|
|
'education_level_id' => 1,
|
|
|
|
'education_form_id' => 1,
|
2024-02-29 18:00:50 +03:00
|
|
|
'budget_places' => fake()->randomDigit(),
|
|
|
|
'quota' => fake()->randomDigit(),
|
|
|
|
'paid_places' => fake()->randomDigit(),
|
|
|
|
'cost_paid_place' => fake()->randomDigit(),
|
|
|
|
'period' => fake()->randomDigit(),
|
2024-02-10 11:23:38 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|