Hello guys !
So in Laravel 4 we could do
Route::filter('auth.basic', function()
{
return Auth::basic('username');
});
But now it's not possible, and the doc doesn't give a clue about how to. So can anyone help ?
Thanks !
Create a new custom middleware using the same code as the default one:
and override the default 'email' field like:
return $this->auth->basic('username') ?: $next($request);