Set the default driver from the Authenticate middleware
This commit is contained in:
parent
4f4d378d6a
commit
f7d05cbbaa
@ -42,6 +42,8 @@ class Authenticate
|
|||||||
|
|
||||||
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
Block a user