Change redirect when authenticated

The route /home doesn’t exist in a default Laravel application, whereas / does.
This commit is contained in:
Martin Bean
2015-11-19 23:01:29 +00:00
parent 8476df5c9e
commit 223191a9b0

View File

@@ -35,7 +35,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next)
{
if ($this->auth->check()) {
return redirect('/home');
return redirect('/');
}
return $next($request);