diff --git a/bootstrap/app.php b/bootstrap/app.php index d5d7e70..5ee96a7 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -14,7 +14,10 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware) { - // + $middleware->redirectGuestsTo(fn () => route('login')); + $middleware->redirectUsersTo(RouteServiceProvider::HOME); + + $middleware->throttleApi(); }) ->withExceptions(function (Exceptions $exceptions) { //