| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | public function handle() |
||
| 15 | { |
||
| 16 | $status = $this->confirm("Do you really want to reinstall the panel ? (All components will be deleted)", true); |
||
| 17 | |||
| 18 | if(!$status) { |
||
| 19 | $this->info("The process was canceled"); |
||
| 20 | return; |
||
| 21 | } |
||
| 22 | |||
| 23 | Artisan::call("panel:uninstall", [ |
||
| 24 | '--force' => true, |
||
| 25 | ]); |
||
| 26 | |||
| 27 | Artisan::call("panel:install"); |
||
| 28 | |||
| 29 | $this->info("The package was reinstalled!"); |
||
| 30 | } |
||
| 32 |