-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
config.php
211 lines (201 loc) · 11 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php
return [
/*
|--------------------------------------------------------------------------
| The singular resource words that will not be pluralized
| For Example: $ php artisan generate:resource admin.bar
| The url will be /admin/bars and not /admins/bars
|--------------------------------------------------------------------------
*/
'reserve_words' => ['app', 'website', 'admin'],
/*
|--------------------------------------------------------------------------
| The default keys and values for the settings of each type to be generated
|--------------------------------------------------------------------------
*/
'defaults' => [
'namespace' => '',
'path' => './app/',
'prefix' => '',
'postfix' => '',
'file_type' => '.php',
'dump_autoload' => false,
'directory_format' => '',
'directory_namespace' => false,
],
/*
|--------------------------------------------------------------------------
| Types of files that can be generated
|--------------------------------------------------------------------------
*/
'settings' => [
'view' => [
'path' => './resources/views/',
'file_type' => '.blade.php',
'directory_format' => 'strtolower',
'directory_namespace' => true
],
'model' => ['namespace' => '\Models', 'path' => './app/Models/'],
'controller' => [
'namespace' => '\Http\Controllers',
'path' => './app/Http/Controllers/',
'postfix' => 'Controller',
'directory_namespace' => true,
'dump_autoload' => false,
'repository_contract' => false,
],
'request' => [
'namespace' => '\Http\Requests',
'path' => './app/Http/Requests/',
'postfix' => 'Request',
'directory_namespace' => true,
],
'seeder' => ['path' => './database/seeders/', 'postfix' => 'TableSeeder'],
'migration' => ['path' => './database/migrations/'],
'notification' => [
'directory_namespace' => true,
'namespace' => '\Notifications',
'path' => './app/Notifications/'
],
'event' => [
'directory_namespace' => true,
'namespace' => '\Events',
'path' => './app/Events/'
],
'listener' => [
'directory_namespace' => true,
'namespace' => '\Listeners',
'path' => './app/Listeners/'
],
'trait' => [
'directory_namespace' => true,
],
'job' => [
'directory_namespace' => true,
'namespace' => '\Jobs',
'path' => './app/Jobs/'
],
'console' => [
'directory_namespace' => true,
'namespace' => '\Console\Commands',
'path' => './app/Console/Commands/'
],
'exception' => [
'directory_namespace' => true,
'namespace' => '\Exceptions',
'path' => './app/Exceptions/'
],
'middleware' => [
'directory_namespace' => true,
'namespace' => '\Http\Middleware',
'path' => './app/Http/Middleware/'
],
'repository' => [
'directory_namespace' => true,
'postfix' => 'Repository',
'namespace' => '\Repositories',
'path' => './app/Repositories/'
],
'contract' => [
'directory_namespace' => true,
'namespace' => '\Contracts',
'postfix' => 'Repository',
'path' => './app/Contracts/',
],
'factory' => [
'postfix' => 'Factory',
'path' => './database/factories/',
],
'test' => [
'directory_namespace' => true,
'namespace' => '\Tests',
'postfix' => 'Test',
'path' => './tests/',
],
'livewire' => [
'namespace' => '\Http\Livewire',
'path' => './app/Http/Livewire/',
'postfix' => '',
'directory_namespace' => true,
],
'livewire_view' => [
'path' => './resources/views/livewire/',
'file_type' => '.blade.php',
'directory_format' => 'strtolower',
'directory_namespace' => true
],
'component' => [
'namespace' => '\View\Components',
'path' => './app/View/Components/',
'postfix' => '',
'directory_namespace' => true,
],
'component_view' => [
'path' => './resources/views/components/',
'file_type' => '.blade.php',
'directory_format' => 'strtolower',
'directory_namespace' => true
],
],
/*
|--------------------------------------------------------------------------
| Resource Views [stub_key | name of the file]
|--------------------------------------------------------------------------
*/
'resource_views' => [
'view_index' => 'index',
//'view_create' => 'create',
//'view_edit' => 'edit',
'view_show' => 'show',
'view_create_edit' => 'create_edit',
],
/*
|--------------------------------------------------------------------------
| Where the stubs for the generators are stored
|--------------------------------------------------------------------------
*/
'stubs' => [
'example' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/example.stub',
'model' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/model.stub',
'model_plain' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/model.plain.stub',
'migration' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/migration.stub',
'migration_plain' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/migration.plain.stub',
'controller' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/controller.stub',
'controller_plain' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/controller.plain.stub',
'controller_admin' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/controller_admin.stub',
'controller_repository' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/controller_repository.stub',
'request' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/request.stub',
'pivot' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/pivot.stub',
'seeder' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/seeder.stub',
'seeder_plain' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/seeder.plain.stub',
'view' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.stub',
'view_index' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.index.stub',
'view_indexb3' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.index.b3.stub',
'view_show' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.show.stub',
'view_showb3' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.show.b3.stub',
//'view_create' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.create.stub',
//'view_edit' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.edit.stub',
'view_create_edit' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.create_edit.stub',
'view_create_editb3' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/view.create_edit.b3.stub',
'schema_create' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/schema_create.stub',
'schema_change' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/schema_change.stub',
'notification' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/notification.stub',
'event' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/event.stub',
'listener' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/listener.stub',
'many_many_relationship' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/many_many_relationship.stub',
'trait' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/trait.stub',
'job' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/job.stub',
'console' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/console.stub',
'exception' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/exception.stub',
'middleware' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/middleware.stub',
'repository' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/repository.stub',
'repository_contract' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/repository.contract.stub',
'contract' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/contract.stub',
'factory' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/factory.stub',
'test' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/test.stub',
'livewire' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/livewire.stub',
'livewire_view' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/livewire.view.stub',
'component' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/component.stub',
'component_view' => base_path() . '/vendor/bpocallaghan/generators/resources/stubs/component.view.stub',
]
];