Conditions | 4 |
Paths | 6 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function handle() |
||
52 | { |
||
53 | foreach ($this->getSupportedLocales() as $locale) { |
||
54 | |||
55 | $path = $this->makeLocaleRoutesPath($locale); |
||
56 | |||
57 | if ($this->files->exists($path)) { |
||
58 | $this->files->delete($path); |
||
59 | } |
||
60 | } |
||
61 | |||
62 | $path = $this->laravel->getCachedRoutesPath(); |
||
63 | |||
64 | if ($this->files->exists($path)) { |
||
65 | $this->files->delete($path); |
||
66 | } |
||
67 | |||
68 | $this->info('Route caches for locales cleared!'); |
||
69 | } |
||
70 | } |
||
71 |