applicant-site/database/factories/DepartmentFactory.php

22 lines
511 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class DepartmentFactory extends Factory
{
public function definition(): array
{
return [
'name' => fake()->name(),
'description' => fake()->text(),
'slug' => fake()->slug(),
'position' => fake()->randomNumber(),
'faculty_id' => fake()->realTextBetween(1,5,1),
];
}
}