akayaman/laravel-flysystem-azure
laravel-flysystem-azure
Laravel Azure blob storage service provider
Only for blob storage!
Usage
- Register service provider in
config/app.php.
'providers' => [
AzureStorageServiceProvider::class,
]
If you are using Laravel >= 5.5, provider registration could be done by Laravel automaticly.
- Register disk in
config/filesystem.php.
'disks' => [
'azure' => [
'driver' => 'azure',
'account' => [
'name' => env('AZURE_ACCOUNT_NAME'),
'key' => env('AZURE_ACCOUNT_KEY'),
],
'blob-endpoint' => env('AZURE_BLOB_ENDPOINT'),
'container' => 'my-container'
]
]
You can register multiple azure containers with different disk names:
'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'
]
]
-
Set azure account and key.
-
Use
Storage::disk('azure')->get().
Related Packages
alinauf/laravel-azure-storage
Azure Blob Storage filesystem driver for Laravel using REST API
2,161
1
diamondbybold/laravel-flysystem-azure-blob-storage
Laravel Wrapper for Flysystem Azure Blob Storage
2,770
1
heedworks/laravel-azure-blob-storage
Laravel wrapper for Azure Blob Storage. Uses Azure library from https://github.c...
20,597
1
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.5 | >=5.6.4 | ~5.3 | MIT | |
| v1.0.4 | >=5.6.4 | 5.3.* | | MIT | |
| v1.0.3 | >=5.6.4 | 5.3.* | | MIT | |
| v1.0.2 | >=5.6.4 | 5.3.* | | MIT | |
| v1.0.1 | >=5.6.4 | 5.3.* | | MIT | |
| v1.0.0 | >=5.6.4 | 5.3.* | | MIT |