Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage menu module wise and display on admin area all menus #301

Open
mtkumar82 opened this issue Feb 10, 2023 · 1 comment
Open

Manage menu module wise and display on admin area all menus #301

mtkumar82 opened this issue Feb 10, 2023 · 1 comment

Comments

@mtkumar82
Copy link

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

@reidsneo
Copy link

reidsneo commented Mar 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants