From 60ac687d128709f094b55c42900f29c4747bc527 Mon Sep 17 00:00:00 2001 From: ell Date: Wed, 21 Dec 2016 03:19:19 +0300 Subject: [PATCH] Add auth redirect path generation method --- src/Illuminate/Foundation/Auth/RedirectsUsers.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Illuminate/Foundation/Auth/RedirectsUsers.php b/src/Illuminate/Foundation/Auth/RedirectsUsers.php index c86d9d96a662..cc992290e7ad 100644 --- a/src/Illuminate/Foundation/Auth/RedirectsUsers.php +++ b/src/Illuminate/Foundation/Auth/RedirectsUsers.php @@ -11,6 +11,10 @@ trait RedirectsUsers */ public function redirectPath() { + if (method_exists($this, 'redirectTo')) { + return $this->redirectTo(); + } + return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home'; } }