applicant-site/database/factories/DepartmentFactory.php

20 lines
416 B
PHP
Raw Normal View History

2024-02-08 15:59:44 +03:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class DepartmentFactory extends Factory
{
public function definition(): array
{
return [
2024-02-12 09:19:08 +03:00
'name' => fake()->name(),
'description' => fake()->text(),
'slug' => fake()->slug(),
2024-02-12 10:27:08 +03:00
'position' => fake()->randomDigit(),
'faculty_id' => 1,
2024-02-08 15:59:44 +03:00
];
}
}