/** * 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'); }
/** * Execute the console command. * * @return mixed */ public function fire() { $this->line('Preparing to regenerate all thumbnails...'); $this->dispatch(new RebuildThumbnails($this->file->all()->pluck('path'))); $this->info('All thumbnails refreshed'); }
/** * */ private function emptyMedia() { foreach ($this->file->all() as $file) { $this->file->destroy($file); } }
public function all() { $files = $this->file->all(); return ['count' => $files->count(), 'data' => $files]; }
/** * A grid view of uploaded files used for the wysiwyg editor * @return \Illuminate\View\View */ public function ckIndex() { $files = $this->file->all(); $thumbnails = $this->thumbnailsManager->all(); return view('media::admin.grid.ckeditor', compact('files', 'thumbnails')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $files = $this->file->all(); $config = $this->config->get('asgard.media.config'); return view('media::admin.index', compact('files', 'config')); }