mercredi 8 mai 2019

How to customize "email" field in laravel auth?

I'm trying to customize laravel's authentication fields. I succeeded for the "name" and "password" fields, but not for the "email" field, I still have the error "SQLSTATE[42S22]: Column not found: 1054 "email" field unknown in where clause"

I tried to rely on this subject, but it didn't work.

in registerController, I changes the create function to this :

    protected function create(array $data)
    {
        return User::create([
            'user_pseudo' => $data['name'],
            'user_email' => $data['email'],
            'usr_mdp' => bcrypt($data['password']),
        ]);
    }```



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire