From 488855f80d1f2c88ff30e8e8b6972aa8719d14c8 Mon Sep 17 00:00:00 2001 From: WJ Straver <11840660+wjstraver@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:29:03 +0200 Subject: [PATCH] Changed middleware to use correct group for Nova 4 --- src/LogsToolServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LogsToolServiceProvider.php b/src/LogsToolServiceProvider.php index 48bebb8..fe59504 100644 --- a/src/LogsToolServiceProvider.php +++ b/src/LogsToolServiceProvider.php @@ -40,10 +40,10 @@ protected function routes() return; } - Nova::router(['nova', Authorize::class], 'logs-tool') + Nova::router(['nova:api', Authorize::class], 'logs-tool') ->group(__DIR__.'/../routes/inertia.php'); - Route::middleware(['nova', Authorize::class]) + Route::middleware(['nova:api', Authorize::class]) ->prefix('nova-vendor/KABBOUCHI/logs-tool') ->group(__DIR__.'/../routes/api.php'); }