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.3.1(10mo ago)11.8kMITPHPPHP ^8.1|^8.2

Since Nov 27Pushed 10mo 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 1mo ago

READMEChangelog (10)Dependencies (5)Versions (25)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

40

—

FairBetter than 87% of packages

Maintenance56

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

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 ~28 days

Recently: every ~19 days

Total

21

Last Release

326d 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 (35 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

1496.5M100](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[joshembling/image-optimizer

Optimize your Filament images before they reach your database.

111145.4k12](/packages/joshembling-image-optimizer)[joaopaulolndev/filament-pdf-viewer

Filament package to show pdf document viewer

104147.2k3](/packages/joaopaulolndev-filament-pdf-viewer)[saasykit/laravel-open-graphy

An awesome open graph image (social cards) generator package for Laravel.

13057.0k](/packages/saasykit-laravel-open-graphy)

PHPackages © 2026

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