Download the PHP package yoelpc4/laravel-cloudinary without Composer
On this page you can find all versions of the php package yoelpc4/laravel-cloudinary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoelpc4/laravel-cloudinary
More information about yoelpc4/laravel-cloudinary
Files in yoelpc4/laravel-cloudinary
Package laravel-cloudinary
Short Description Laravel Cloudinary filesystem cloud driver.
License MIT
Homepage https://github.com/yoelpc4/laravel-cloudinary
Informations about the package laravel-cloudinary
Laravel Cloudinary
Laravel Cloudinary filesystem driver.
Requirement
Laravel Version Compatibilities
Laravel | Package |
---|---|
11.x.x | 5.x |
10.x.x | 4.x |
9.x.x | 3.x |
8.x.x | 2.x |
7.x.x | 2.x |
6.x.x | 2.x |
Install
Requires this package with composer via command:
Environment Variable
Register your Cloudinary account details here. Then add these lines to your .env.
Filesystem Configuration
Register cloudinary driver configuration in config/filesystems.php
at disks section as follows
The secure option is applied when generating url from storage, when secure = true
will use https
otherwise secure = false
will use http
as protocol.
The resource_types option is applied when generating resource type & public id whenever we call storage method such as
write, writeStream, url, has, etc. Registers the appropriate file extensions according to cloudinary resource type e.g:
png in image, mp4 in video, xlsx in raw, for audio files registers in video. The default resource type is image
,
visit image upload api reference for more information.
Tips
To use pre-defined filename as public ID when uploading to cloudinary, you need to tweak some configuration
in Settings -> Upload -> Upload presets
as follows:
-
Click edit button on signed mode preset, initial preset is
ml_default
you can update it. -
Turn on
Use filename or externally defined public ID
to using the pre-defined filename instead of random characters. - Turn off
Unique filename
to prevent cloudinary from adding random characters at the end of filename. - Click
Save
and you're good to go.
License
The Laravel Cloudinary is open-sourced software licensed under the MIT license.
All versions of laravel-cloudinary with dependencies
cloudinary/cloudinary_php Version ^2.9.0
illuminate/contracts Version 10.*|^11.0
illuminate/filesystem Version 10.*|^11.0
illuminate/http Version 10.*|^11.0
illuminate/support Version 10.*|^11.0
league/flysystem Version ^3.8.0