Skip to content

Commit ac270f6

Browse files
committed
Re-register HTTP middleware
1 parent 21568e4 commit ac270f6

File tree

2 files changed

+6
-69
lines changed

2 files changed

+6
-69
lines changed

app/Http/Kernel.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

bootstrap/app.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
health: '/up',
1515
)
1616
->withMiddleware(function (Middleware $middleware) {
17-
//
17+
$middleware->redirectGuestsTo(fn () => route('login'));
18+
$middleware->redirectUsersTo(RouteServiceProvider::HOME);
19+
20+
$middleware->web(\App\Http\Middleware\DisableFloc::class);
21+
22+
$middleware->throttleApi();
1823
})
1924
->withExceptions(function (Exceptions $exceptions) {
2025
//

0 commit comments

Comments
 (0)