| @@ 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 | { |
|
| @@ 241-265 (lines=25) @@ | ||
| 238 | * |
|
| 239 | * @return array |
|
| 240 | */ |
|
| 241 | protected function getOptions() |
|
| 242 | { |
|
| 243 | return [ |
|
| 244 | [ |
|
| 245 | 'all', |
|
| 246 | 'a', |
|
| 247 | InputOption::VALUE_NONE, |
|
| 248 | 'Generate an index, create, and an edit view for the model', |
|
| 249 | ], |
|
| 250 | ||
| 251 | ['index', 'i', InputOption::VALUE_NONE, 'Create a only the index view for the model'], |
|
| 252 | ||
| 253 | ['create', 'c', InputOption::VALUE_NONE, 'Create only the create view for the model'], |
|
| 254 | ||
| 255 | ['edit', 'e', InputOption::VALUE_NONE, 'Create only the edit view for the model'], |
|
| 256 | ||
| 257 | ['show', 's', InputOption::VALUE_NONE, 'Create only the show view for the model'], |
|
| 258 | ||
| 259 | ['force', 'f', InputOption::VALUE_NONE, 'Create the file even if the file already exists.'], |
|
| 260 | ||
| 261 | ['dir', 'd', InputOption::VALUE_OPTIONAL, 'Create the file inside this directory within the view.'], |
|
| 262 | ||
| 263 | ['stubs', 'b', InputOption::VALUE_OPTIONAL, 'Use stubs from the specified directory.'], |
|
| 264 | ]; |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||