Skip to content

Commit 223191a

Browse files
committed
Change redirect when authenticated
The route /home doesn’t exist in a default Laravel application, whereas / does.
1 parent 8476df5 commit 223191a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/RedirectIfAuthenticated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(Guard $auth)
3535
public function handle($request, Closure $next)
3636
{
3737
if ($this->auth->check()) {
38-
return redirect('/home');
38+
return redirect('/');
3939
}
4040

4141
return $next($request);

0 commit comments

Comments
 (0)