From 356f4b07f6e5b0b07beb773639a8b6470994dad6 Mon Sep 17 00:00:00 2001 From: Windows Store Date: Wed, 19 Aug 2026 15:38:54 +0330 Subject: [PATCH] feat: add new middleware --- bootstrap/app.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index fcbe18f..239a282 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,6 +1,7 @@ redirectGuestsTo(fn(Request $request)=>route('auth.login.index')); $middleware->alias([ 'admin.auth' => AdminAuth::class, + 'admin.guest' => AdminGuest::class, + ]); + }) ->withExceptions(function (Exceptions $exceptions) { //