- $storage->put($fullPath, $imageData);
- $storage->setVisibility($fullPath, 'public');
+ $storage->put($fullPath, $imageData, ['visibility' => 'public']);
$name = str_replace(' ', '-', $name);
$nameParts = explode('.', $name);
$extension = array_pop($nameParts);
$name = str_replace(' ', '-', $name);
$nameParts = explode('.', $name);
$extension = array_pop($nameParts);
$thumbData = $this->resizeImage($storage->get($imagePath), $width, $height, $keepRatio);
$thumbData = $this->resizeImage($storage->get($imagePath), $width, $height, $keepRatio);
- $storage->put($thumbFilePath, $thumbData);
- $storage->setVisibility($thumbFilePath, 'public');
+ $storage->put($thumbFilePath, $thumbData, ['visibility' => 'public']);