The package encourage implementation of modular pattern for your Laravel project.You can easily start your modular journey with this simple package and generate only files you need.
A module is like a Laravel package, it has some views, controllers or models.
Run the following command from your projects root
composerrequire norbybaru/modularize
Publish the package configuration using the following command:
php artisan vendor:publish --provider="NorbyBaru\Modularize\ModularizeServiceProvider"
The default namespace is set as Modules this will apply the namespace for all classes the module will use when it's being created and later when generation additional classes.
For autoloading modules, add the following to your composer.json and execute composer dump-autoload:
{"autoload": {"psr-4": {"App\\":"app/","Modules\\":"modules/" } }}
Open your terminal and run command to list all possible commands:
Credits to: