make(Environment::class); $language = app()->make(Language::class); $io = new SymfonyStyle($input, $output); $io->section('Clearing Language Cache'); $langList = $language->getLanguageList(); if ($langList) { foreach ($langList as $key => $lang) { $result = Cache::store('installation')->forget('languages.lang_'.$key); if ($result) { $this->components->info('Cleared: '.$key); } else { $this->components->warn('Failed to clear: '.$key); } } } $this->components->info('cleared language file cache'); return Command::SUCCESS; } }