diff --git a/configuration/storage.html b/configuration/storage.html index 21f6809..fd37cee 100644 --- a/configuration/storage.html +++ b/configuration/storage.html @@ -249,6 +249,27 @@ ], ], +
You must require additional library composer require league/flysystem-azure-blob-storage
See official documentation
+ 'Filegator\Services\Storage\Filesystem' => [
+ 'handler' => '\Filegator\Services\Storage\Filesystem',
+ 'config' => [
+ 'separator' => '/',
+ 'config' => [],
+ 'adapter' => function () {
+ $accountName = 'your_storage_account_name';
+ $accountKey = '123456';
+ $containerName = 'my_container';
+
+ $client = \MicrosoftAzure\Storage\Blob\BlobRestProxy::createBlobService(
+ "DefaultEndpointsProtocol=https;AccountName=${accountName};AccountKey=${accountKey};"
+ );
+
+ return new \League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter($client, $containerName);
+ },
+ ],
+ ],
You must require additional library composer require league/flysystem-replicate-adapter
The ReplicateAdapter facilitates smooth transitions between adapters, allowing an application to stay functional and migrate its files from one adapter to another. The adapter takes two other adapters, a source and a replica. Every change is delegated to both adapters, while all the read operations are passed onto the source only.