make(Environment::class); $io = new SymfonyStyle($input, $output); $io->section('Clearing all caches'); $io->text('Clear Views'); $this->call('view:clear'); $io->text('Clear Installation Cache'); Cache::store('installation')->forget('languages.lang_en-US'); $this->components->info('cleared language file cache'); // $this->call("cache:clear", ["installation"]); $io->text('Clear Bootstrap Cache'); $commandOut = exec('rm -rf ./storage/framework/composerPaths.php'); $this->components->info('composerPaths removed'); $commandOut = exec('rm -rf ./storage/framework/viewPaths.php'); $this->components->info('viewpaths removed'); $commandOut = exec('rm -rf ./bootstrap/cache/*.php'); $this->components->info('bootstrap cache cleared'); $io->success('All Caches cleared'); return Command::SUCCESS; } }