Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
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 | if($status) { |
||
18 | Artisan::call("panel:uninstall", [ |
||
19 | '--force' => true, |
||
20 | ]); |
||
21 | |||
22 | Artisan::call("panel:install"); |
||
23 | |||
24 | $this->info("The package was reinstalled!"); |
||
25 | return; |
||
26 | } |
||
27 | |||
28 | $this->info("The process was canceled"); |
||
29 | } |
||
31 |