From bf5303fdc919d9d560df128b92a1891dc64ea488 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 23 May 2016 09:40:22 -0500 Subject: [PATCH] set user resolver for request in shouldUse --- src/Illuminate/Auth/AuthManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Illuminate/Auth/AuthManager.php b/src/Illuminate/Auth/AuthManager.php index 7c13af77961c..39a16c7b20e9 100755 --- a/src/Illuminate/Auth/AuthManager.php +++ b/src/Illuminate/Auth/AuthManager.php @@ -194,6 +194,10 @@ public function getDefaultDriver() public function shouldUse($name) { return $this->setDefaultDriver($name); + + $this->userResolver = function ($name = null) { + return $this->guard($name)->user(); + }; } /**