23 lines
574 B
PHP
23 lines
574 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EmergencyContact>
|
|
*/
|
|
class EmergencyContactFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_id' => User::factory(),
|
|
'full_name' => fake()->name(),
|
|
'phone_number' => fake()->phoneNumber(),
|
|
'relationship' => fake()->randomElement(['Spouse', 'Parent', 'Sibling', 'Friend']),
|
|
];
|
|
}
|
|
}
|