This commit is contained in:
2024-04-15 10:15:16 +05:45
parent d80b1aa0e9
commit 6ae0143005
41 changed files with 707 additions and 17 deletions

View File

@ -12,7 +12,7 @@ return [
|
| Default module namespace.
|
*/
*/
'namespace' => 'Modules',
@ -23,7 +23,7 @@ return [
|
| Default module stubs.
|
*/
*/
'stubs' => [
'enabled' => false,
@ -69,7 +69,7 @@ return [
| This path is used to save the generated module.
| This path will also be added automatically to the list of scanned folders.
|
*/
*/
'modules' => base_path('Modules'),
/*
@ -79,7 +79,7 @@ return [
|
| Here you may update the modules' assets path.
|
*/
*/
'assets' => public_path('modules'),
/*
@ -90,7 +90,7 @@ return [
| Where you run the 'module:publish-migration' command, where do you publish the
| the migration files?
|
*/
*/
'migration' => base_path('database/migrations'),
@ -101,7 +101,7 @@ return [
|
| app folder name
| for example can change it to 'src' or 'App'
*/
*/
'app_folder' => 'app/',
/*
@ -110,7 +110,7 @@ return [
|--------------------------------------------------------------------------
| Customise the paths where the folders will be generated.
| Setting the generate key to false will not generate that folder
*/
*/
'generator' => [
// app/
'channels' => ['path' => 'app/Broadcasting', 'generate' => false],
@ -121,7 +121,7 @@ return [
'listener' => ['path' => 'app/Listeners', 'generate' => false],
'model' => ['path' => 'app/Models', 'generate' => true],
'notifications' => ['path' => 'app/Notifications', 'generate' => false],
'observer' => ['path' => 'app/Observers', 'generate' => false],
'observer' => ['path' => 'app/Observers', 'generate' => true],
'policies' => ['path' => 'app/Policies', 'generate' => false],
'provider' => ['path' => 'app/Providers', 'generate' => true],
'route-provider' => ['path' => 'app/Providers', 'generate' => true],
@ -168,7 +168,7 @@ return [
| Here you can define which commands will be visible and used in your
| application. You can add your own commands to merge section.
|
*/
*/
'commands' => ConsoleServiceProvider::defaultCommands()
->merge([
// New commands go here
@ -182,7 +182,7 @@ return [
| Here you define which folder will be scanned. By default will scan vendor
| directory. This is useful if you host the package in packagist website.
|
*/
*/
'scan' => [
'enabled' => false,
@ -197,7 +197,7 @@ return [
|
| Here is the config for the composer.json file, generated by this package
|
*/
*/
'composer' => [
'vendor' => env('MODULES_VENDOR', 'nwidart'),
@ -215,7 +215,7 @@ return [
|
| Here is the config for setting up the caching feature.
|
*/
*/
'cache' => [
'enabled' => false,
'driver' => 'file',
@ -228,7 +228,7 @@ return [
| Setting one to false will require you to register that part
| in your own Service Provider class.
|--------------------------------------------------------------------------
*/
*/
'register' => [
'translations' => true,
/**
@ -245,7 +245,7 @@ return [
| You can define new types of activators here, file, database, etc. The only
| required parameter is 'class'.
| The file activator will store the activation status in storage/installed_modules
*/
*/
'activators' => [
'file' => [
'class' => FileActivator::class,