31 lines
832 B
PHP
31 lines
832 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Employees;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Employees>
|
|
*/
|
|
class EmployeesFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name(),
|
|
'address' => $this->faker->address(),
|
|
'position' => $this->faker->randomElement(['Manager', 'Supervisor', 'Driver']),
|
|
'email' => $this->faker->unique()->safeEmail(),
|
|
'phone' => $this->faker->phoneNumber(),
|
|
'date_of_birth' => $this->faker->date(),
|
|
'photos' => $this->faker->imageUrl(),
|
|
];
|
|
}
|
|
}
|