sebastienheyd / boilerplate

Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
MIT License
217 stars 65 forks source link

[Question] - How to remove default menu items #82

Closed Faber44 closed 1 year ago

Faber44 commented 1 year ago

Hello and thanks for your boilerplate :) Should be simple and easy, but how do you remove default menu items (like logs and users) without touching the vendor files ?

sebastienheyd commented 1 year ago

Hello,

The easiest way to remove the logs menu item is to set logs => false in the config/boilerplate/app.php.

Or you can unregister menu items in the boot method in app/Providers/AppServiceProvider.php :

public function boot()
{
  app('boilerplate.menu.items')
      ->unregisterMenuItem("Sebastienheyd\Boilerplate\Menu\Users")
      ->unregisterMenuItem("Sebastienheyd\Boilerplate\Menu\Logs");
}