| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 2 | Features | 1 |
| 1 | <?php |
||
| 28 | public function handle() |
||
| 29 | { |
||
| 30 | $this->line('=== Update vendor configs ==='); |
||
| 31 | |||
| 32 | $dir = str_replace('/Commands', '', __DIR__); |
||
| 33 | |||
| 34 | \File::copy($dir.'/../configVendor/auth.php', base_path('/config/auth.php')); |
||
| 35 | \File::copy($dir.'/../configVendor/breadcrumbs.php', base_path('/config/breadcrumbs.php')); |
||
| 36 | \File::copy($dir.'/../configVendor/filesystems.php', base_path('/config/filesystems.php')); |
||
| 37 | \File::copy($dir.'/../configVendor/jsvalidation.php', base_path('/config/jsvalidation.php')); |
||
| 38 | \File::copy($dir.'/../configVendor/medialibrary.php', base_path('/config/medialibrary.php')); |
||
| 39 | \File::copy($dir.'/../configVendor/cart.php', base_path('/config/cart.php')); |
||
| 40 | \File::copy($dir.'/../configVendor/database.php', base_path('/config/database.php')); |
||
| 41 | \File::deleteDirectory(base_path('public')); |
||
| 42 | |||
| 43 | $this->info('Configs successfully updated'); |
||
| 44 | } |
||
| 46 |