PHP code example of futureoriented / laravel-flysystem-azure

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

    

futureoriented / laravel-flysystem-azure example snippets


'providers' => [
    AzureStorageServiceProvider::class,
]

'disks' => [
    'azure'  => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'my-container'
    ]
]

'disks' => [
    'azure-reports' => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'reports'
    ],
    
    'azure-images' => [
        'driver' => 'azure',
        'account' => [
            'name' => env('AZURE_ACCOUNT_NAME'),
            'key' => env('AZURE_ACCOUNT_KEY'),
        ],
        'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
        'container' => 'images'
    ]
]