From 1ed00e3a13802a1bc54983ac9862634d073fddc7 Mon Sep 17 00:00:00 2001 From: Darryl Hein Date: Wed, 24 Oct 2018 20:14:39 -0600 Subject: [PATCH] supports() must return a boolean --- security/guard_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index 9c5ecd0ba3a..04a4c1d6815 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -475,7 +475,7 @@ are two possible fixes: public function supports(Request $request) { + // if there is already an authenticated user (likely due to the session) - + // then return null and skip authentication: there is no need. + + // then return false and skip authentication: there is no need. + if ($this->security->getUser()) { + return false; + }