PHPackages                             aonodevs/laravel-cloudinary-upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. aonodevs/laravel-cloudinary-upload

ActiveLibrary[Image &amp; Media](/categories/media)

aonodevs/laravel-cloudinary-upload
==================================

Package to upload images and videos on cloudinary and save their url into model's database

2.4.0(1mo ago)11.8kMITPHPPHP ^8.1|^8.2

Since Nov 27Pushed 1mo agoCompare

[ Source](https://github.com/AonoDevs/laravel-cloudinary-upload)[ Packagist](https://packagist.org/packages/aonodevs/laravel-cloudinary-upload)[ Docs](https://github.com/aonodevs/laravel-cloudinary-upload)[ RSS](/packages/aonodevs-laravel-cloudinary-upload/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (10)Versions (26)Used By (0)

Package to upload images and videos on cloudinary and save their url into model's database
==========================================================================================

[](#package-to-upload-images-and-videos-on-cloudinary-and-save-their-url-into-models-database)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c34b264df08b06e60c560f2a07ce31bdf38c6dfa67288b11e1c1dfe795fe4543/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616f6e6f646576732f6c61726176656c2d636c6f7564696e6172792d75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aonodevs/laravel-cloudinary-upload)[![Total Downloads](https://camo.githubusercontent.com/06b4fa166ef42655f008667c32acd40936399b00dbcc9976afe090eea7a61e2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616f6e6f646576732f6c61726176656c2d636c6f7564696e6172792d75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aonodevs/laravel-cloudinary-upload)

This package provides a trait that adds cloudinary upload behavior to a Eloquent model.

It will save the url returned by cloudinary when you want to save an image or video for creation or modification.

Old images or videos will be removed from cloudinary if the model is deleted or updated.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require aonodevs/laravel-cloudinary-upload
```

You can publish the config file with:

```
php artisan vendor:publish --tag="cloudinary-upload-config"
```

This is the contents of the published config file:

```
return [
    /*
     * Your cloudinary upload url
     */
    "url" => env('CLOUDINARY_URL')
];
```

Usage
-----

[](#usage)

To add cloudinary upload behaviour to your model you must:

1. Use the trait AonoDevs\\LaravelCloudinaryUpload\\CloudinaryTrait.
2. Write your different fillable attribute which will take into account the url record returned by cloudinary. You must differentiate between images and videos using `$cloudinary_image` and `$cloudinary_video` respectively

Exemple
-------

[](#exemple)

```
use AonoDevs\LaravelCloudinaryUpload\CloudinaryTrait;
// ...

class Article extends Model
{
    use CloudinaryTrait;

    protected $fillable = [
        'title',
        'header_img', // Image
        'footer_img', // Image
        'content_video', // Video
    ];

    protected array $cloudinary_image = ['header_img', 'footer_img'];

    protected array $cloudinary_video = ['content_video'];

    // ...
}
```

If you don't set a value `$cloudinary_image` or `$cloudinary_image` the package will assume that none of your attributes will need to be a cloudinary one and will not run cloudinary upload and url saving.

Credits
-------

[](#credits)

- [AonoDevs](https://github.com/AonoDevs)

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~105 days

Total

22

Last Release

37d ago

Major Versions

1.1.4 → 2.0.02024-09-17

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9a2ced2979327527e387f4e2581577b102cb6b891d8d6f2d53e9ddc3da31824?d=identicon)[aonoagency](/maintainers/aonoagency)

---

Top Contributors

[![Roriwars](https://avatars.githubusercontent.com/u/46683598?v=4)](https://github.com/Roriwars "Roriwars (36 commits)")

---

Tags

laravelAonolaravel-cloudinary-upload

### Embed Badge

![Health badge](/badges/aonodevs-laravel-cloudinary-upload/health.svg)

```
[![Health](https://phpackages.com/badges/aonodevs-laravel-cloudinary-upload/health.svg)](https://phpackages.com/packages/aonodevs-laravel-cloudinary-upload)
```

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M182](/packages/intervention-image-laravel)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4924.8k5](/packages/ralphjsmit-laravel-glide)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3218.1k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
