Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
blue32a committed Mar 9, 2020
1 parent aa29814 commit 32bb1f2
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# laravel-azure-blob-storage
# laravel-azure-blob-storage

![](https://github.com/blue32a/laravel-azure-blob-storage/workflows/Test/badge.svg)

## About

Use Azure Blob Storage as file storage for Laravel.

Flysystem Adapter: [blue32a/flysystem-azure-blob-storage](https://github.com/blue32a/flysystem-azure-blob-storage)

## Installation

```console
$ composer require blue32a/laravel-azure-blob-storage
```

## Usage

Configure your disk in `config/filesystems.php`.

The driver is `azure-blob`.

```php
'disks' => [

'azure-blob' => [
'driver' => 'azure-blob',
'secure' => true,
'name' => env('AZULE_STORAGE_NAME'),
'key' => env('AZULE_STORAGE_KEY'),
'container' => 'example',
],

],
```

You can use `url()`. Requires public read access to the Blob.

```php
Storage::disk('azure-blob')->url($path);
```

0 comments on commit 32bb1f2

Please sign in to comment.