CourseWork/database/factories/TeacherFactory.php
2024-06-15 20:55:20 +04:00

29 lines
641 B
PHP

<?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
{
$faker = \Faker\Factory::create('ru_RU');
return [
'name' => $faker->firstNameMale,
'last_name' => $faker->lastNameMale,
'middle_name' => $faker->middleNameMale,
'birthday' => $faker->date(),
];
}
}