I'm working on a Laravel application where I'm utilizing the NWIDART module to split various functions into modules. Currently, I have a predefined approach in my core code to check if a module exists and is enabled, then display a menu based on the module's name.
However, I'm aiming for a more automated solution where newly installed modules can dynamically add menus without requiring manual edits to my base code..
How can I create a system that handles these requirements? Are there any best practices or existing packages that can assist in implementing this dynamic menu management for Laravel modules?
Thank you for any insights or guidance you can provide!