CourseWork/database/factories/StudentFactory.php
2024-06-16 00:41:31 +04:00

27 lines
590 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
{
return [
'name' => fake()->firstNameMale,
'last_name' => fake()->lastNameMale,
'middle_name' => fake()->middleNameMale,
'birthday' => fake()->date(),
];
}
}