disk = $disk; } /** * Execute the console command. * * @return mixed */ public function handle() { $this->call('cache:clear'); $this->call('view:clear'); $this->call('config:clear'); $this->call('route:clear'); foreach ($this->disk->allFiles(storage_path('logs')) as $file) { $this->disk->delete($file); } $this->info('log files cleared!'); foreach ($this->disk->allFiles(storage_path('debugbar')) as $file) { $this->disk->delete($file); } $this->info('debugbar files cleared!'); } }