Oct 3, 2022
0
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(),
];
});
Please or to participate in this conversation.