From 6835fdfddd5a7b81e0a945dfc4a890fa2e575203 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 28 Oct 2025 13:24:34 -0300 Subject: [PATCH] =?UTF-8?q?=C3=9AUPDATE:=20Creating=20a=20aliases=20to=20n?= =?UTF-8?q?ew=20middleware=20'Authorization'.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/app.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index c3928c5..0d946f0 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,18 +1,21 @@ withRouting( - web: __DIR__.'/../routes/web.php', - api: __DIR__.'/../routes/api.php', - commands: __DIR__.'/../routes/console.php', + web: __DIR__ . '/../routes/web.php', + api: __DIR__ . '/../routes/api.php', + commands: __DIR__ . '/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { - // + $middleware->alias([ + 'authorization' => Authorization::class + ]); }) ->withExceptions(function (Exceptions $exceptions): void { //