Skip to content

Commit f90d3df

Browse files
authored
Merge pull request #72 from Procionegobbo/README-update-for-transformations
Add instructions on how to retrieve url with Cloudinary transformations
2 parents d9d7bad + 9848922 commit f90d3df

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,27 @@ https://res.cloudinary.com/my-cloud-name/image/upload/v1/client_cat/meow.jpg
130130
In the Media Library it is stored in `client_cat/meow` and you can retrieve
131131
the image with `meow`:
132132

133+
```php
134+
use Illuminate\Support\Facades\Storage;
135+
136+
Storage::disk('cloudinary')->getAdapter()->getUrl('meow');
133137
```
138+
139+
You can use Cloudinary tranformation and options when retrieving the image:
140+
141+
```php
134142
use Illuminate\Support\Facades\Storage;
135143

136-
Storage::disk('cloudinary')->getUrl('meow');
144+
Storage::disk('cloudinary')->getAdapter()->getUrl([
145+
'path' => 'meow',
146+
'options => ['w_250', 'h_250', 'c_thumb',]
147+
);
137148
```
138149

150+
You can find all options in
151+
the [official documentation](https://cloudinary.com/documentation/transformation_reference)
152+
153+
139154
This should increase the trust to store and retrieve your assets from the
140155
correct folder.
141156

0 commit comments

Comments
 (0)