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
1 changed files with 1 additions and 1 deletions

View File

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