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(),
|
2024-02-12 10:27:08 +03:00
|
|
|
'position' => fake()->randomDigit(),
|
|
|
|
'faculty_id' => 1,
|
2024-02-08 15:59:44 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|