applicant-site/database/factories/FacultyFactory.php

28 lines
618 B
PHP
Raw Normal View History

2024-02-07 16:30:49 +03:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Faculty>
*/
class FacultyFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
2024-02-12 12:15:46 +03:00
'name' => fake()->name(),
'description' => fake()->text(),
'position' => fake()->randomDigit(),
'slug' => fake()->slug(),
'educational_institution_id' => 1,
2024-02-07 16:30:49 +03:00
];
}
}