Merge pull request #3718 from JosephSilber/default-auth-driver
Set the default driver from the Authenticate middleware
This commit is contained in:
commit
b1b524d78b
|
@ -42,6 +42,8 @@ protected function check(array $guards)
|
||||||
|
|
||||||
foreach ($guards as $guard) {
|
foreach ($guards as $guard) {
|
||||||
if (Auth::guard($guard)->check()) {
|
if (Auth::guard($guard)->check()) {
|
||||||
|
Auth::shouldUse($guard);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue