Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function handle() |
||
15 | { |
||
16 | $status = $this->confirm("Do you really want to uninstall the panel ? (All files and components will be deleted)", true); |
||
17 | if($status){ |
||
18 | File::deleteDirectory(app_path('Http/Livewire/Admin')); |
||
19 | File::deleteDirectory(resource_path('views/livewire/admin')); |
||
20 | File::deleteDirectory(resource_path('views/vendor/admin')); |
||
21 | File::deleteDirectory(resource_path('cruds')); |
||
22 | File::deleteDirectory(public_path('assets/admin')); |
||
23 | File::delete(config_path('easy_panel.php')); |
||
24 | $this->info("All files and components was deleted!"); |
||
25 | |||
26 | return; |
||
27 | } |
||
28 | |||
29 | $this->info("The process was canceled"); |
||
30 | } |
||
33 |