mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
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) {
|
||||
if (Auth::guard($guard)->check()) {
|
||||
Auth::shouldUse($guard);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user