From 952cada19814da6b4b86a2f60c8e6db417d18d34 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 5 Apr 2024 18:36:48 +0000 Subject: [PATCH] Re-register HTTP middleware --- bootstrap/app.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index d5d7e70d..5ee96a7c 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) { //