App\Console\Commands\CacheClear::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : void
return void
    public function fire()
    {
        // xe 에서 관리하는 stores
        $stores = ['file', 'plugins', 'schema'];
        $storeName = $this->argument('store');
        if ($storeName != null) {
            $stores = array_intersect($stores, explode(',', $storeName));
        }
        foreach ($stores as $storeName) {
            $this->laravel['events']->fire('cache:clearing', [$storeName]);
            $this->cache->store($storeName)->flush();
            $this->laravel['events']->fire('cache:cleared', [$storeName]);
        }
        $this->info('Application cache cleared!');
    }
CacheClear