php - Use Laravel 5 Auth with custom table field name? -


the error informatin caused incorrect field in database.

queryexception in connection.php line 620: sqlstate[42s22]: column not found: 1054 unknown column 'email' in 'where clause'

the default field of auth different database field, want use database field in auth.

for example: email field in database call user_email, want change database field auth field.

so, there way ? sorry poor english :)

thx;

you can set whatever columns in auth::attemp method in controller.

in case bewlow construct should work

auth::attempt(['user_email' => $email, 'password' => $password] 

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -