Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
a5ce2b58
Unverified
Commit
a5ce2b58
authored
Oct 03, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating laravel-modules config structure
parent
404e8af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
modules.php
config/modules.php
+29
-27
No files found.
config/modules.php
View file @
a5ce2b58
...
...
@@ -28,14 +28,13 @@ return [
'files'
=>
[
'start'
=>
'start.php'
,
'routes'
=>
'Http/routes.php'
,
'json'
=>
'module.json'
,
'views/index'
=>
'Resources/views/index.blade.php'
,
'views/master'
=>
'Resources/views/layouts/master.blade.php'
,
'scaffold/config'
=>
'Config/config.php'
,
'composer'
=>
'composer.json'
,
],
'replacements'
=>
[
'start'
=>
[
'LOWER_NAME'
],
'start'
=>
[
'LOWER_NAME'
,
'ROUTES_LOCATION'
],
'routes'
=>
[
'LOWER_NAME'
,
'STUDLY_NAME'
,
'MODULE_NAMESPACE'
],
'json'
=>
[
'LOWER_NAME'
,
'STUDLY_NAME'
,
'MODULE_NAMESPACE'
],
'views/index'
=>
[
'LOWER_NAME'
],
...
...
@@ -57,7 +56,7 @@ return [
| Modules path
|--------------------------------------------------------------------------
|
| This path used for save the generated module. This path also will added
| This path used for save the generated module. This path also will
be
added
| automatically to list of scanned folders.
|
*/
...
...
@@ -88,30 +87,33 @@ return [
|--------------------------------------------------------------------------
| Generator path
|--------------------------------------------------------------------------
|
| Here you may update the modules generator path.
|
| Customise the paths where the folders will be generated.
| Se the generate key to false to not generate that folder
*/
'generator'
=>
[
'assets'
=>
'Assets'
,
'config'
=>
'Config'
,
'command'
=>
'Console'
,
'event'
=>
'Events'
,
'listener'
=>
'Events/Handlers'
,
'migration'
=>
'Database/Migrations'
,
'model'
=>
'Entities'
,
'repository'
=>
'Repositories'
,
'seeder'
=>
'Database/Seeders'
,
'controller'
=>
'Http/Controllers'
,
'filter'
=>
'Http/Middleware'
,
'request'
=>
'Http/Requests'
,
'provider'
=>
'Providers'
,
'lang'
=>
'Resources/lang'
,
'views'
=>
'Resources/views'
,
'test'
=>
'Tests'
,
'jobs'
=>
'Jobs'
,
'emails'
=>
'Mail'
,
'config'
=>
[
'path'
=>
'Config'
,
'generate'
=>
true
],
'command'
=>
[
'path'
=>
'Console'
,
'generate'
=>
true
],
'migration'
=>
[
'path'
=>
'Database/Migrations'
,
'generate'
=>
true
],
'seeder'
=>
[
'path'
=>
'Database/Seeders'
,
'generate'
=>
true
],
'factory'
=>
[
'path'
=>
'Database/factories'
,
'generate'
=>
true
],
'model'
=>
[
'path'
=>
'Entities'
,
'generate'
=>
true
],
'controller'
=>
[
'path'
=>
'Http/Controllers'
,
'generate'
=>
true
],
'filter'
=>
[
'path'
=>
'Http/Middleware'
,
'generate'
=>
true
],
'request'
=>
[
'path'
=>
'Http/Requests'
,
'generate'
=>
true
],
'provider'
=>
[
'path'
=>
'Providers'
,
'generate'
=>
true
],
'assets'
=>
[
'path'
=>
'Assets'
,
'generate'
=>
true
],
'lang'
=>
[
'path'
=>
'Resources/lang'
,
'generate'
=>
true
],
'views'
=>
[
'path'
=>
'Resources/views'
,
'generate'
=>
true
],
'test'
=>
[
'path'
=>
'Tests'
,
'generate'
=>
true
],
'repository'
=>
[
'path'
=>
'Repositories'
,
'generate'
=>
true
],
'event'
=>
[
'path'
=>
'Events'
,
'generate'
=>
true
],
'listener'
=>
[
'path'
=>
'Events/Handlers'
,
'generate'
=>
true
],
'policies'
=>
[
'path'
=>
'Policies'
,
'generate'
=>
false
],
'rules'
=>
[
'path'
=>
'Rules'
,
'generate'
=>
false
],
'jobs'
=>
[
'path'
=>
'Jobs'
,
'generate'
=>
false
],
'emails'
=>
[
'path'
=>
'Emails'
,
'generate'
=>
false
],
'notifications'
=>
[
'path'
=>
'Notifications'
,
'generate'
=>
false
],
'resource'
=>
[
'path'
=>
'Transformers'
,
'generate'
=>
false
],
],
],
/*
...
...
@@ -155,14 +157,14 @@ return [
|
*/
'cache'
=>
[
'enabled'
=>
tru
e
,
'enabled'
=>
fals
e
,
'key'
=>
'laravel-modules'
,
'lifetime'
=>
60
,
],
/*
|--------------------------------------------------------------------------
| Choose what laravel-modules will register as custom namespaces.
| Setting one to false will require to register that part
| Setting one to false will require
you
to register that part
| in your own Service Provider class.
|--------------------------------------------------------------------------
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment