laravel-menu
laravel-menu copied to clipboard
Manage menu module wise and display on admin area all menus
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
Hi we are on same boat
- You need to create a module first using laravel-module package
- You can create a Laravy Middleware in the module
- Let it say the Menu middleware
- 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