PHP code example of xiaomlove / laravel-filesystem-cloudinary

1. Go to this page and download the library: Download xiaomlove/laravel-filesystem-cloudinary library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xiaomlove / laravel-filesystem-cloudinary example snippets


...

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

...

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)