Browse Source

Merge pull request #3718 from JosephSilber/default-auth-driver

Set the default driver from the Authenticate middleware
Taylor Otwell 8 years ago
parent
commit
b1b524d78b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Middleware/Authenticate.php

+ 2 - 0
app/Http/Middleware/Authenticate.php

@@ -42,6 +42,8 @@ class Authenticate
 
         foreach ($guards as $guard) {
             if (Auth::guard($guard)->check()) {
+                Auth::shouldUse($guard);
+
                 return true;
             }
         }