Roman_applicant-site/database/factories/DirectionFactory.php

31 lines
882 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,
'budget_places' => fake()->randomDigit(),
'quota' => fake()->randomDigit(),
'paid_places' => fake()->randomDigit(),
'cost_paid_place' => fake()->randomDigit(),
'period' => fake()->randomDigit(),
];
}
}