Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from jameshilliard/fix-redirect
Browse files Browse the repository at this point in the history
fix endless redirect for logged in users
  • Loading branch information
bowyern committed Feb 17, 2017
2 parents 8c63ef7 + 5ed6fa4 commit 5e57c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/');
return redirect('/home');
}
return $next($request);
}
Expand Down

0 comments on commit 5e57c6d

Please sign in to comment.