/** * Execute the console command. * * @return mixed */ public function fire() { $this->line('Preparing to regenerate all thumbnails...'); foreach ($this->file->all() as $file) { $this->imagy->createAll($file->path); } $this->info('All thumbnails refreshed'); }