laravel-menu icon indicating copy to clipboard operation
laravel-menu copied to clipboard

Manage menu module wise and display on admin area all menus

Open mtkumar82 opened this issue 2 years ago • 1 comments

Hi, I am developing my applications module wise, So each module have its own menu's, When I login to admin area I want to show all those menu's there, If I disabled or delete any module those menu's related to that module should also be removed from applications., Please suggest me a way how I can handle it using your extension in my laravel10 applications. For modules creation I am using below extension. https://nwidart.com/laravel-modules/v6/introduction

Please provide me your valuable suggestions how I can manage it within your extension?

Jarnail

mtkumar82 avatar Feb 10 '23 05:02 mtkumar82

Hi we are on same boat

  1. You need to create a module first using laravel-module package
  2. You can create a Laravy Middleware in the module
  3. Let it say the Menu middleware
  4. register the menu middleware in the moduleServiceProvider.php on boot section

when module enabled menu will show otherwise when module disable it will automatically hidden

reidsneo avatar Mar 06 '23 09:03 reidsneo