CourseWork/database/factories/TeacherFactory.php

27 lines
590 B
PHP
Raw Normal View History

2024-06-15 20:55:20 +04:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Teacher>
*/
class TeacherFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
2024-06-16 00:41:31 +04:00
'name' => fake()->firstNameMale,
'last_name' => fake()->lastNameMale,
'middle_name' => fake()->middleNameMale,
'birthday' => fake()->date(),
2024-06-15 20:55:20 +04:00
];
}
}