Looking to hire Laravel developers? Try LaraJobs

laravel-filesystem-cloudinary maintained by xiaomlove

Description
a cloudinary filesystem for laravel
Author
Last update
2019/04/20 21:40 (dev-master)
License
Downloads
50

Comments
comments powered by Disqus

Laravel Filesystem for cloudinary

base on carlosocarvalho/flysystem-cloudinary

Configuration

...

'cloudinary' => [
    'driver' => 'cloudinary',
    'api_key' => env('CLOUDINARY_API_KEY'),
    'api_secret' => env('CLOUDINARY_API_SECRET'),
    'cloud_name' => env('CLOUDINARY_CLOUD_NAME'),
],

...

Usage

use Storage

// get fle url
Storage::url($path)

// get file url with options, options referance to: https://github.com/cloudinary/cloudinary_php#usage
Storage::getUrl($path, $options)