Skip to content

Commit

Permalink
add valid guest redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbarrett committed Apr 16, 2024
1 parent bd11b6c commit ebfae7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
Expand All @@ -17,6 +18,7 @@
HandleInertiaRequests::class,
]
);
$middleware->redirectGuestsTo(fn (Request $request) => route('home'));
})
->withExceptions(function (Exceptions $exceptions) {
//
Expand Down

0 comments on commit ebfae7b

Please sign in to comment.