From c04ac4a5e3157697d3d085bcdcb34ff17cf1816f Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 19 May 2015 19:30:16 +0100 Subject: [PATCH] Fix RedirectIfAuthenticate middleware redirecting to wrong location --- app/Http/Middleware/RedirectIfAuthenticated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index a9debe6a..178073ea 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -47,7 +47,7 @@ class RedirectIfAuthenticated public function handle($request, Closure $next) { if ($this->auth->check()) { - return new RedirectResponse(url('/home')); + return new RedirectResponse(route('dashboard')); } return $next($request);