예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 /**
  * 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);
     }
 }
예제 #4
0
 public function all()
 {
     $files = $this->file->all();
     return ['count' => $files->count(), 'data' => $files];
 }
예제 #5
0
 /**
  * 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'));
 }
예제 #6
0
 /**
  * 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'));
 }