xiaomlove/laravel-filesystem-cloudinary

a cloudinary filesystem for laravel

v0.1.0 2019-04-20 19:40 UTC

This package is auto-updated.

Last update: 2024-04-22 02:39:13 UTC


README

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)