| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function handle(): void |
||
| 18 | { |
||
| 19 | $module = Str::studly($this->argument('module')); |
||
|
|
|||
| 20 | |||
| 21 | if (! $this->laravel['modules']->has($module)) { |
||
| 22 | $this->error("Module [{$module}] does not exist!"); |
||
| 23 | |||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | $this->laravel['modules']->setUsed($module); |
||
| 28 | |||
| 29 | $this->info("Module [{$module}] is now being used in the cli session!"); |
||
| 30 | } |
||
| 32 |