PHP code example of diamondbybold / laravel-flysystem-azure-blob-storage

1. Go to this page and download the library: Download diamondbybold/laravel-flysystem-azure-blob-storage 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/ */

    

diamondbybold / laravel-flysystem-azure-blob-storage example snippets


    'azure' => [
        'domain'    => 'https://' . env('AZURE_ACCOUNT_NAME') . '.blob.' . env('AZURE_ENDPOINT_SUFFIX') .
            '/' . env('AZURE_CONTAINER'),
    ],

     /*
      * When urls to files get generated, this class will be called. Leave empty
      * if your files are stored locally above the site root or on s3.
      */
    'url_generator' => env('MEDIA_LIBRARY_DISK_NAME', 'public') == 'azure'
        ? \DiamondByBOLD\FlysystemAzureBlobStorage\MediaLibrary\UrlGenerator\AzureBlobUrlGenerator::class
        : null,