/**
  * {@inheritDoc}
  */
 public function guid()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'guid', array());
     return parent::guid();
 }
예제 #2
0
 /**
  * @param $file
  * @param $asset
  */
 private function makeThumbnail($file, Asset $asset)
 {
     $this->disk->makeDirectory(config('assets.uploads.thumbs') . $this->getPathOnly($asset->guid()));
     $thPath = $this->getThumbsPath($asset);
     $thumb = Image::make($file->getRealPath());
     $thumb->widen(500, function ($constraint) {
         $constraint->upsize();
     });
     $thumb->save($thPath);
 }