src/Generators/ModuleGenerator.php 1 location
|
@@ 395-401 (lines=7) @@
|
| 392 |
|
]); |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
if (GenerateConfigReader::read('controller')->generate() === true) { |
| 396 |
|
$options = $this->type=='api'?['--api'=>true]:[]; |
| 397 |
|
$this->console->call('module:make-controller', [ |
| 398 |
|
'controller' => $this->getName() . 'Controller', |
| 399 |
|
'module' => $this->getName(), |
| 400 |
|
]+$options); |
| 401 |
|
} |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
/** |
src/Generators/DatabaseModuleGenerator.php 1 location
|
@@ 117-123 (lines=7) @@
|
| 114 |
|
]); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
if (GenerateConfigReader::read('controller')->generate() === true) { |
| 118 |
|
$options = $this->type == 'api' ? ['--api' => true] : []; |
| 119 |
|
Artisan::call('module:make-controller', [ |
| 120 |
|
'controller' => $this->getName() . 'Controller', |
| 121 |
|
'module' => $this->getName(), |
| 122 |
|
] + $options); |
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|