Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 3
0
 /**
  *
  */
 private function emptyMedia()
 {
     foreach ($this->file->all() as $file) {
         $this->file->destroy($file);
     }
 }
Ejemplo n.º 4
0
 public function all()
 {
     $files = $this->file->all();
     return ['count' => $files->count(), 'data' => $files];
 }
Ejemplo n.º 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'));
 }
Ejemplo n.º 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'));
 }