/**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->cache->flush();
     $this->files->delete($this->laravel['config']['app.manifest'] . '/services.json');
     $this->laravel['events']->fire('cache:cleared');
     $this->info('Application cache cleared!');
 }
Exemple #2
0
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->laravel['events']->fire('cache:clearing');
     $this->cache->flush();
     $this->laravel['events']->fire('cache:cleared');
     $this->info('Application cache cleared!');
 }
Exemple #3
0
 /**
  * Handle the command.
  *
  * @param CacheManager       $cache
  * @param FieldMigrator      $fields
  * @param StreamMigrator     $streams
  * @param AssignmentMigrator $assignments
  */
 public function handle(CacheManager $cache, FieldMigrator $fields, StreamMigrator $streams, AssignmentMigrator $assignments)
 {
     $assignments->reset($this->migration);
     $fields->reset($this->migration);
     $streams->reset($this->migration);
     $cache->flush();
 }
 /**
  * Remove all items from the cache.
  */
 public function flush()
 {
     $this->cache->flush();
 }