Modularizing Laravel Applications With ModuleServiceProvider
Implementing modular folder structure in Laravel for reusable and scalable applications, using ModuleServiceProvider to load views, migrations, translations, and routes from module directories.
I am not the first with the idea, but I wanted to make it myself as an exercise. The idea behind a modular folder structure is creating package-like folders that have almost no ties with other parts of the applications. For example they could share the database, but they don't share tables. This way it is easy to reuse them or split them from the application to put on a more powerful server if needed. Discovering the module parts step by step Most people that know Laravel know the AppServiceProvider. I'm named it ModuleServiceProvider and only have the boot method. Because I'm goi...