database/factories/UserFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'name' => $this->faker->name,
            'email' => $this->faker->unique()->safeEmail,
            'email_verified_at' => now(),
            'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 
            'remember_token' => Str::random(10),
            'verified' => $verificado = $this->faker->randomElement([User::USUARIO_VERIFICADO, User::USUARIO_NO_VERIFICADO]),
            'verification_token' => ($verificado == User::USUARIO_VERIFICADO) ? null : User::generarVerificationToken(),
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> name , 'email' => $ this -> faker -> unique ( ) -> safeEmail , 'email_verified_at' => now ( ) , 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi' , 'remember_token' => Str :: random ( 10 ) , 'verified' => $ verificado = $ this -> faker -> randomElement ( [ User :: USUARIO_VERIFICADO , User :: USUARIO_NO_VERIFICADO ] ) , 'verification_token' => ( $ verificado == User :: USUARIO_VERIFICADO ) ? null : User :: generarVerificationToken ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .
// password