Skip to content

blue32a/laravel-azure-blob-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-azure-blob-storage

About

Use Azure Blob Storage as file storage for Laravel.

Flysystem Adapter: blue32a/flysystem-azure-blob-storage

Installation

$ composer require blue32a/laravel-azure-blob-storage

Usage

Configure your disk in config/filesystems.php.

The driver is azure-blob.

    'disks' => [

        'azure-blob' => [
            'driver' => 'azure-blob',
            'secure' => true,
            'name' => env('AZULE_STORAGE_NAME'),
            'key' => env('AZULE_STORAGE_KEY'),
            'container' => 'example',
            'blob_endpoint' => env('AZULE_STORAGE_BLOB_ENDPOINT'),
            'public_endpoint' => env('AZULE_STORAGE_PUBLIC_ENDPOINT'),
        ],

    ],

You can use url(). Requires public read access to the Blob.

Storage::disk('azure-blob')->url($path);