Skip to content

Commit 7458e83

Browse files
committed
add storage driver info
1 parent 8bd33cd commit 7458e83

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
- [Installation](#installation)
2424
- [Usage](#usage)
25+
- [File Storage Driver](#file-storage-driver)
2526
- [Blade Components](#blade-components)
2627
- [Disclaimer](#disclaimer)
2728
- [Contributions](#contributions)
@@ -54,6 +55,26 @@ CLOUDINARY_NOTIFICATION_URL=
5455
5556
## Usage
5657

58+
### File Storage Driver
59+
60+
This SDK implements the [File Storage](https://laravel.com/docs/12.x/filesystem#main-content) Driver interface allowing you to use it as just another storage destination like s3, azure or local disk.
61+
62+
Add a new `cloudinary` key to your `config/filesystems.php` disk key like so:
63+
64+
```php
65+
...,
66+
'cloudinary' => [
67+
'driver' => 'cloudinary',
68+
'key' => env('CLOUDINARY_KEY'),
69+
'secret' => env('CLOUDINARY_SECRET'),
70+
'cloud' => env('CLOUDINARY_CLOUD_NAME'),
71+
'url' => env('CLOUDINARY_URL'),
72+
'secure' => (bool) env('CLOUDINARY_SECURE', true),
73+
'prefix' => env('CLOUDINARY_PREFIX'),
74+
],
75+
...,
76+
```
77+
5778
### Blade Components
5879

5980
This package provides a few Blade components for easy integration of Cloudinary media in your Laravel views.

0 commit comments

Comments
 (0)