I recently tagged and released v2 of the https://github.com/cloudinary-labs/cloudinary-laravel. The Laravel Cloudinary package is an SDK that empowers Laravel developers with the ability to fluently upload, optimize, store, transform and deliver media files with Cloudinary. It also provides an API to easily attach your media files to Laravel Eloquent models. I'll briefly highlight the changes that shipped with Laravel Cloudinary v2 below: It fully supports Laravel 9.
// Upload an image file to cloudinary with one line of code $uploadedFileUrl = cloudinary()->upload($request->file('file')->getRealPath())->getSecurePath(); // Upload a video file to cloudinary with one line of code $uploadedFileUrl = cloudinary()->uploadVideo($request->file('file')->getRealPath())->getSecurePath(); // Upload any file to cloudinary with one line of code $uploadedFileUrl = cloudinary()->uploadFile($request->file('file')->getRealPath())->getSecurePath(); // Upload an existing remote file to Cloudinary with one line of code $uploadedFileUrl = cloudinary()->uploadFile($remoteFileUrl)->getSecurePath(); Exit fullscreen mode