Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function handle() |
||
15 | { |
||
16 | $this->alert('deleting...'); |
||
17 | $this->alert('delete Mongicommerce ASSETS file...'); |
||
18 | |||
19 | if (file_exists(public_path('/mongicommerce/template/shop'))) { |
||
20 | File::deleteDirectory(public_path('/mongicommerce/template/shop')); |
||
21 | } |
||
22 | |||
23 | $this->alert('Assets shop deleted successfully!'); |
||
24 | |||
25 | if (file_exists(resource_path('/views/mongicommerce'))) { |
||
26 | File::deleteDirectory(resource_path('/views/mongicommerce')); |
||
27 | } |
||
28 | $this->alert('Views shop deleted successfully'); |
||
29 | } |
||
31 |