From 2b6863f5bc90a59f9f1a62867d7b2cb86bc38c48 Mon Sep 17 00:00:00 2001 From: Matthew Daly <450801+matthewbdaly@users.noreply.github.com> Date: Tue, 22 Sep 2020 19:43:10 +0100 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 1315828..bdf09fe 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,24 @@ Finally, add the fields `AZURE_STORAGE_NAME`, `AZURE_STORAGE_KEY`, `AZURE_STORAG For details on how to use this driver, refer to the [Laravel documentation on the file storage API](https://laravel.com/docs/7.x/filesystem). +# Custom endpoints + +The package supports using a custom endpoint, as in this example: + +```php + 'azure' => [ + 'driver' => 'azure', + 'name' => env('AZURE_STORAGE_NAME'), + 'key' => env('AZURE_STORAGE_KEY'), + 'container' => env('AZURE_STORAGE_CONTAINER'), + 'url' => env('AZURE_STORAGE_URL'), + 'prefix' => null, + 'endpoint' => env('AZURE_STORAGE_ENDPOINT'), + ], +``` + +Then you can specify a suitable value for `AZURE_STORAGE_ENDPOINT` in your `.env` file as normal. + # Support policy This package is supported on the current Laravel LTS version, and any later versions. If you are using an older Laravel version, it may work, but I offer no guarantees, nor will I accept pull requests to add this support.