i guess you want to change the field 'email' ?
You can pass the field name as an argument to the basic method in the middleware. see line https://github.com/laravel/framework/blob/5.3/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php#L38 and then https://github.com/laravel/framework/blob/5.3/src/Illuminate/Auth/SessionGuard.php#L289
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community