*/ class AdministradorFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Administrador::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'persona_id' => Persona::factory(), 'dni' => (string) $this->faker->unique()->numberBetween(20000000, 45000000), 'correo' => $this->faker->unique()->safeEmail(), 'credencialprofesional_id' => CredencialProfesional::factory(), ]; } }