cloudinary-community / cloudinary-laravel

Laravel SDK for Cloudinary
MIT License
258 stars 70 forks source link

How to get the list of the images that I had uploaded to cloudinary? #10

Closed davidle282 closed 3 years ago

unicodeveloper commented 3 years ago

@davidle282 You mean calling a method in this package to fetch all the images you have uploaded directly or all the images you have uploaded to a folder?

davidle282 commented 3 years ago

I mean to fetch all the images I have uploaded to a folder

unicodeveloper commented 3 years ago

@davidle282 You can take advantage of the admin() functionality to list all the images in a folder like so:

return cloudinary()->admin()->resources([
 'type' => 'upload',
 'prefix' => 'my_folder/'
]);