Fix RedirectIfAuthenticate middleware redirecting to wrong location

This commit is contained in:
James Brooks
2015-05-19 19:30:16 +01:00
parent 166e6f8d59
commit c04ac4a5e3

View File

@@ -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);