Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skoobi's avatar
Level 13

Adding Label to Menu item

Morning. Just started playing around with Nova and am trying to add the itsmejoshua/novaspatiepermissions which is Spaties roles and permissions to the menu. Essentially i'm trying to set the menu how I want it.

Heres the code that i have so far.:

use Itsmejoshua\Novaspatiepermissions\Role;
use Itsmejoshua\Novaspatiepermissions\Permission;

Nova::mainMenu(function (Request $request) {
            return [
                MenuSection::dashboard(Main::class)->icon('chart-bar'),

                MenuSection::make('Web Forms', [

                ])->icon('document')->collapsable(),

                MenuSection::make('Settings', [
                    MenuGroup::make('User Management', [
                        MenuItem::resource(User::class),
                        MenuItem::resource(Role::class), // Not displaying
                        MenuItem::resource(Permission::class) // Not displaying
                    ])
                ])->icon('cog')->collapsable(),
            ];
        });
0 likes
0 replies

Please or to participate in this conversation.