framgia/flysystem-azure

Flysystem adapter for Windows Azure

0.1.0 2017-09-14 10:05 UTC

This package is not auto-updated.

Last update: 2021-11-13 11:34:53 UTC


README

Software License

Azure custom filesystem for Laravel 5

This is a Flysystem adapter for the Windows Azure.

Require Laravel 5

Install

Install package

composer require framgia/flysystem-azure

Open config/app.php and add this to providers section

Framgia\Flysystem\Azure\AzureServiceProvider::class,

Open config/filesystems.php and add this stuff to disks section

'azure' => [
    'driver' => 'azure',
    'name' => env('AZURE_STORAGE_NAME'),
    'key' => env('AZURE_STORAGE_KEY'),
    'container' => env('AZURE_STORAGE_CONTAINER', ''),
    'service_url' => env('AZURE_STORAGE_SERVICE_URL'),
]

Edit .env and add variables

AZURE_STORAGE_NAME=
AZURE_STORAGE_KEY=
AZURE_STORAGE_CONTAINER=
AZURE_STORAGE_SERVICE_URL=https://{namespace}.blob.core.windows.net