28 lines
656 B
PHP
28 lines
656 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Patient>
|
|
*/
|
|
class PatientFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name,
|
|
'gender' => $this->faker->randomElement(['m', 'f']),
|
|
'birth_date' => $this->faker->date(),
|
|
'address' => $this->faker->address,
|
|
'phone' => $this->faker->phoneNumber,
|
|
];
|
|
}
|
|
}
|