diff --git a/app/Providers/NovaServiceProvider.php b/app/Providers/NovaServiceProvider.php index 53b742cf2..63b44e295 100644 --- a/app/Providers/NovaServiceProvider.php +++ b/app/Providers/NovaServiceProvider.php @@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Schema; use Laravel\Nova\Dashboard; +use Laravel\Nova\Menu\MenuItem; use Laravel\Nova\Nova; use Laravel\Nova\NovaApplicationServiceProvider; @@ -19,6 +20,10 @@ public function boot(): void parent::boot(); Schema::morphUsingUuids(); + + Nova::mainMenu( + fn () => array_map(fn ($resource) => MenuItem::resource($resource), Nova::$resources) + ); } protected function routes(): void