| 1 | <?php |
||
| 9 | class ControllerCommand extends MakeCommand |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The console command name. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $signature = 'admin:controller {model} |
||
| 17 | {--title=} |
||
| 18 | {--stub= : Path to the custom stub file. } |
||
| 19 | {--namespace=} |
||
| 20 | {--O|output}'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The console command description. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $description = 'Make admin controller from giving model'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array|string|null |
||
| 31 | */ |
||
| 32 | protected function getModelName() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | * @throws \ReflectionException |
||
| 40 | */ |
||
| 41 | protected function getControllerName() |
||
| 47 | } |
||
| 48 |