0
I’m using the Laravel 5 and I want to use the middleware auth.basic
. But in my database, the table used for authentication (usuarios
), doesn’t have the field email
, and yes username
- the standard expected by Laravel 5 is email
.
I was able to quietly set up the AuthController
to authenticate using a custom field. However, these settings are not the same for the auth.basic
, because the following error is being generated when I try to do this type of authentication:
Column not found: 1054 Unknown column 'email' in 'Where clause'
I’ve searched Stackoverflow in English, in the documentation and looked at the source code, and so far I haven’t found a solution.
Does anyone know a simple way to set up middleware
of auth.basic
in order to authenticate Basic
?
See if this helps: http://stackoverflow.com/questions/30362295/laravel-5-how-to-use-basic-auth-with-username-in-place-of-email
– Miguel
@Miguel that’s right :D
– Wallace Maxters