| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function execute($request) |
||
| 14 | { |
||
| 15 | $model = $request['name']; |
||
| 16 | $name = config('schematics.controller-namespace')."{$model}Controller"; |
||
| 17 | |||
| 18 | Artisan::call('make:controller', [ |
||
| 19 | 'name' => $name, |
||
| 20 | '--resource' => true, |
||
| 21 | '--model' => config('schematics.model.namespace').$model, |
||
| 22 | '--quiet', |
||
| 23 | ]); |
||
| 24 | |||
| 25 | return Artisan::output(); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |