2024-02-08 15:59:44 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
2024-02-12 09:19:08 +03:00
|
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
use Illuminate\Support\Str;
|
2024-02-08 15:59:44 +03:00
|
|
|
|
|
|
|
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(),
|
|
|
|
'position' => fake()->randomNumber(),
|
|
|
|
'faculty_id' => fake()->realTextBetween(1,5,1),
|
2024-02-08 15:59:44 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|