| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function handle() |
||
| 48 | { |
||
| 49 | foreach ($this->getSupportedLocales() as $locale => $localeValue) { |
||
| 50 | $path = $this->makeLocaleRoutesPath($locale); |
||
| 51 | if ($this->files->exists($path)) { |
||
| 52 | $this->files->delete($path); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | $path = $this->laravel->getCachedRoutesPath(); |
||
| 56 | if ($this->files->exists($path)) { |
||
| 57 | $this->files->delete($path); |
||
| 58 | } |
||
| 59 | $this->info('Route caches for locales cleared!'); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |