/** * 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); }
public function __contruct($path, ImageManager $image) { $this->image = $image; parent::__contruct($path); }