| 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']), | |
| ]; | |
| } | |
| } | |