xray/azure-storage-laravel

Azure Storage 适配器 for Laravel

v1.0.0 2024-09-28 16:09 UTC

This package is auto-updated.

Last update: 2024-09-28 16:13:17 UTC


README

License

PHP CI

描述

Laravel 适配 Microsoft Azure Blob Storage

安装

composer require xray/azure-storage-laravel

配置

将这些新设置添加到您的 filesystem.php 文件中

'disks' => [
    ...

    'azure' => [
        'driver'      => 'azure',
        'account'     => env('AZURE_STORAGE_ACCOUNT'),
        'directory'   => env('AZURE_STORAGE_DIRECTORY'),
        'application' => env('AZURE_STORAGE_APPLICATION'),
        'secret'      => env('AZURE_STORAGE_SECRET'),
        'container'   => env('AZURE_STORAGE_CONTAINER'),
        // Optional parameters
        'options'     => [
            'authentication' => Xray\AzureStoragePhpSdk\Authentication\MicrosoftEntraId::class,
            'url'            => env('AZURE_STORAGE_URL'),
            'secure'         => env('AZURE_STORAGE_SECURE', true),
        ],
    ],
],

许可证

本项目采用 MIT 许可证

联系方式