futureoriented/laravel-flysystem-azure
Composer 安装命令:
composer require futureoriented/laravel-flysystem-azure
包简介
Laravel Azure storage service provider
关键字:
README 文档
README
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().
统计信息
- 总下载量: 1.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-13