@@ 246-270 (lines=25) @@ | ||
243 | * |
|
244 | * @return array |
|
245 | */ |
|
246 | protected function getOptions() |
|
247 | { |
|
248 | return [ |
|
249 | [ |
|
250 | 'all', |
|
251 | 'a', |
|
252 | InputOption::VALUE_NONE, |
|
253 | 'Generate an index, create, and an edit view for the model', |
|
254 | ], |
|
255 | ||
256 | ['index', 'i', InputOption::VALUE_NONE, 'Create a only the index view for the model'], |
|
257 | ||
258 | ['create', 'c', InputOption::VALUE_NONE, 'Create only the create view for the model'], |
|
259 | ||
260 | ['edit', 'e', InputOption::VALUE_NONE, 'Create only the edit view for the model'], |
|
261 | ||
262 | ['show', 's', InputOption::VALUE_NONE, 'Create only the show view for the model'], |
|
263 | ||
264 | ['force', 'f', InputOption::VALUE_NONE, 'Create the file even if the file already exists.'], |
|
265 | ||
266 | ['dir', 'd', InputOption::VALUE_OPTIONAL, 'Create the file inside this directory within the view.'], |
|
267 | ||
268 | ['stubs', 'b', InputOption::VALUE_OPTIONAL, 'Use stubs from the specified directory.'], |
|
269 | ]; |
|
270 | } |
|
271 | } |
|
272 |
@@ 221-240 (lines=20) @@ | ||
218 | * |
|
219 | * @return array |
|
220 | */ |
|
221 | protected function getOptions() |
|
222 | { |
|
223 | return [ |
|
224 | ['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate a resource controller for the given model.'], |
|
225 | ||
226 | ['resource', 'r', InputOption::VALUE_NONE, 'Generate a resource controller class.'], |
|
227 | ||
228 | ['parent', 'p', InputOption::VALUE_OPTIONAL, 'Generate a nested resource controller class.'], |
|
229 | ||
230 | ['api', null, InputOption::VALUE_NONE, 'Exclude the create and edit methods from the controller.'], |
|
231 | ||
232 | ['views-dir', 'i', InputOption::VALUE_OPTIONAL, 'Use the specified path in controller actions to return the respective view'], |
|
233 | ||
234 | ['controller-dir', 'c', InputOption::VALUE_OPTIONAL, 'Specify the controller path within the Http directory'], |
|
235 | ||
236 | ['route-base', 'b', InputOption::VALUE_OPTIONAL, 'Specify the base route to use'], |
|
237 | ||
238 | ['force', 'f', InputOption::VALUE_NONE, 'Overwrite existing controller'] |
|
239 | ]; |
|
240 | } |
|
241 | ||
242 | public function handle() |
|
243 | { |