*/ class CredencialProfesionalFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = CredencialProfesional::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'usuario' => $this->faker->unique()->userName(), 'contra' => Hash::make('password'), 'rol' => $this->faker->randomElement(['Administrador', 'Profesional']), 'token' => null, 'fecha_hora' => null, ]; } }