From 98489223ad95baa1b6b7675d1badf123911dd7e2 Mon Sep 17 00:00:00 2001 From: Federico Maiorini Date: Wed, 16 Jul 2025 17:28:56 +0200 Subject: [PATCH] Add instructions on how to retrieve url with Cloudinary transformations --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20b9760..6fb394d 100644 --- a/README.md +++ b/README.md @@ -130,12 +130,27 @@ https://res.cloudinary.com/my-cloud-name/image/upload/v1/client_cat/meow.jpg In the Media Library it is stored in `client_cat/meow` and you can retrieve the image with `meow`: +```php +use Illuminate\Support\Facades\Storage; + +Storage::disk('cloudinary')->getAdapter()->getUrl('meow'); ``` + +You can use Cloudinary tranformation and options when retrieving the image: + +```php use Illuminate\Support\Facades\Storage; -Storage::disk('cloudinary')->getUrl('meow'); +Storage::disk('cloudinary')->getAdapter()->getUrl([ + 'path' => 'meow', + 'options => ['w_250', 'h_250', 'c_thumb',] +); ``` +You can find all options in +the [official documentation](https://cloudinary.com/documentation/transformation_reference) + + This should increase the trust to store and retrieve your assets from the correct folder.