cache = $cache;// set cache }// create a new cache clear command instance /** * Execute the console command. * * @return void */ public function fire()// fire is execute the event { $storeName = $this->argument('store');// argument method to get the store Name $this->laravel['events']->fire('cache:clearing', [$storeName]);// a store array ,the value is a instance $this->cache->store($storeName)->flush();// remove all,delete $this->laravel['events']->fire('cache:cleared', [$storeName]);// fire a event $this->info('Application cache cleared!');// log info } /** * Get the console command arguments. * * @return array */ protected function getArguments()// Get the console command arguments { return [ ['store', InputArgument::OPTIONAL, 'The name of the store you would like to clear.'], ]; }// get Arguments method}