| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function handle() |
||
| 26 | { |
||
| 27 | $this->module = Module::find($this->argument('module')); |
||
|
|
|||
| 28 | |||
| 29 | // Verify Module exists |
||
| 30 | if(!$this->module) |
||
| 31 | { |
||
| 32 | $this->error('Unable to find module'); |
||
| 33 | return 1; |
||
| 34 | } |
||
| 35 | |||
| 36 | Artisan::call('module:disable '.$this->module->getStudlyName()); |
||
| 37 | |||
| 38 | $this->info('Module has been disabled'); |
||
| 39 | |||
| 40 | return Command::SUCCESS; |
||
| 41 | } |
||
| 43 |