27 lines
590 B
PHP
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(),
|
|
];
|
|
}
|
|
}
|