From 31d13cb013fe7dd8a2dbf54e1b9315cc2c8e3394 Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 18 Mar 2024 16:13:27 +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 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) { //