Пример #1
0
 /**
  * Save to different disk
  * @param  string $disk local|s3|rackspace|etc
  * @param  string $path path/to/file
  * @return int
  */
 public function to($disk, $path = null)
 {
     $path = $path === null ? $this->uploader->getFolder() . DIRECTORY_SEPARATOR . $this->getBasename() : $path;
     return parent::to($disk, $path);
 }
Пример #2
0
 public function __contruct($path, ImageManager $image)
 {
     $this->image = $image;
     parent::__contruct($path);
 }