Roman_applicant-site/database/factories/DirectionFactory.php

31 lines
882 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-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
];
}
}