From f7d05cbbaa707951e943703d84d5a39c8bc88623 Mon Sep 17 00:00:00 2001 From: Joseph Silber Date: Mon, 28 Mar 2016 09:48:35 -0400 Subject: [PATCH] Set the default driver from the Authenticate middleware --- app/Http/Middleware/Authenticate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index e277e646..c572274f 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -42,6 +42,8 @@ protected function check(array $guards) foreach ($guards as $guard) { if (Auth::guard($guard)->check()) { + Auth::shouldUse($guard); + return true; } }