/** * @inheritdoc */ public function saveFile($path, $contents, array $options) { // Cloudinary paths must be given without the extension, therefore we remove it here return parent::saveFile(substr($path, 0, strrpos($path, '.')), $contents, $options); }
/** * S3Adapter constructor. * * @param array $config */ public function __construct(array $config) { parent::__construct($config); $this->client = $this->createClient($config); $this->bucket = array_get($config, 'bucket', env('S3_BUCKET')); }