From d2e6da3825f1ca8251242477052a58f956cd398d Mon Sep 17 00:00:00 2001 From: Adi Faidz Abdullah Date: Mon, 27 Mar 2017 16:00:35 +0800 Subject: [PATCH] Fixed logout redirect not working properly --- src/Traits/LogoutGuardTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/LogoutGuardTrait.php b/src/Traits/LogoutGuardTrait.php index 2ee75bb..5e1813e 100644 --- a/src/Traits/LogoutGuardTrait.php +++ b/src/Traits/LogoutGuardTrait.php @@ -40,7 +40,7 @@ public function logoutToPath() if (method_exists($this, 'logoutTo')) { return $this->logoutTo(); } - return property_exists($this, 'logoutTo') ? $this->redirectTo : '/'; + return property_exists($this, 'logoutTo') ? $this->logoutTo : '/'; } /** * Check if a particular guard is active.