Set the default driver from the Authenticate middleware

This commit is contained in:
Joseph Silber 2016-03-28 09:48:35 -04:00
parent 4f4d378d6a
commit f7d05cbbaa
1 changed files with 2 additions and 0 deletions

View File

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