modular.php (Global Config)This file lives in config/modular.php.
Where your code lives.
'paths' => [
// Where modules are stored. Change to base_path('packages') if you want.
'modules' => base_path('modules'),
// Where assets are symlinked to in public/
'assets' => 'modules',
],
// Automatically link assets after make:module
'auto_link' => true,
Code generation defaults.
'naming' => [
// The PSR-4 namespace prefix.
'modules' => 'Modules\\',
],
Default flags for make:module.
'generators' => [
'test' => [
'type' => 'pest', // or 'phpunit'
],
],
How we remember if a module is enabled or disabled.
'activators' => [
'file' => [
'class' => \AlizHarb\Modular\Activators\FileActivator::class,
'statuses-file' => base_path('modules_statuses.json'),
'cache-key' => 'activator.installed_modules',
'cache-lifetime' => 604800,
],
],
Speed up discovery in production.
'cache' => [
'enabled' => false,
'key' => 'modular.modules.cache',
'lifetime' => 0,
'path' => storage_path('framework/cache/modular.php'),
],
How can I help you explore Laravel packages today?