File size: 949 Bytes
715309a 1e12ec9 715309a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\Persona;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model\Persona>
*/
class PersonaFactory extends Factory
{
protected $model = Persona::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'nombre'=>$this->faker->firstName(),
'apellido_paterno'=>$this->faker->lastName(),
'apellido_materno'=>$this->faker->lastName(),
'direccion'=>$this->faker->address(),
'fecha_nacimiento'=>$this->faker->date(),
'telefono'=>$this->faker->phoneNumber(),
'curp'=>$this->faker->regexify('[A-Z]{4}\d{6}[A-Z]{7}\d'),
// 'id_rol'=>$this->faker->randomElement(['1', '2', '3', '4', '5', '6']),
];
}
}
|