29 lines
641 B
PHP
29 lines
641 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
/**
|
||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Student>
|
||
|
*/
|
||
|
class StudentFactory 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(),
|
||
|
];
|
||
|
}
|
||
|
}
|