*/ class TeacherFactory extends Factory { /** * Define the model's default state. * * @return array */ 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(), ]; } }