You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
817 B
29 lines
817 B
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Trabajador>
|
|
*/
|
|
class TrabajadorFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'nombre'=> $this->faker->name,
|
|
'telefono'=> $this->faker->phoneNumber(),
|
|
'genero'=> $this->faker->randomElement(['Masculino','Femenino']),
|
|
'sueldo'=> $this->faker->randomFloat(2, 1000, 100000),
|
|
'puesto'=> $this->faker->jobTitle(),
|
|
'numero_seguro'=> $this->faker->randomNumber(8),
|
|
'correo_electronico'=> $this->faker->email(),
|
|
];
|
|
}
|
|
}
|
|
|