You can publish the package configuration using the following command:
php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"
In the published configuration file you can configure the following things:
What the default namespace will be when generating modules.
Key: namespace
Default: Modules
Overwrite the default generated stubs to be used when generating modules. This can be useful to customise the output of different files.
Key: stubs
Overwrite the default paths used throughout the package.
Key: paths
This is disabled by default. Once enabled, the package will look for modules in the specified array of paths.
Key: scan
Customise the generated composer.json
file.
Key: composer
If you have many modules it's a good idea to cache this information (like the multiple module.json
files for example).
Key: cache
Decide which custom namespaces need to be registered by the package. If one is set to false, the package won't handle its registration.
Key: register