cache = $cache; } /** * Execute the console command. * * @return void */ public function fire() { $storeName = $this->argument('store'); $this->laravel['events']->fire('cache:clearing', [$storeName]); $this->cache->store($storeName)->flush(); $this->laravel['events']->fire('cache:cleared', [$storeName]); $this->info('Application cache cleared!'); } /** * Get the console command arguments. * * @return array */ protected function getArguments() { return [ ['store', InputArgument::OPTIONAL, 'The name of the store you would like to clear.'], ]; } }