-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04e531f
commit 67811ac
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
s3forme-laravel | ||
------------- | ||
|
||
Requirements | ||
------------ | ||
|
||
* laravel >= 5.1 | ||
* league/flysystem-aws-s3-v2 >=1.0 (retrieved automatically via Composer) | ||
|
||
Installation | ||
------------ | ||
|
||
Using Composer: | ||
|
||
```sh | ||
composer require lemesdaniel/s3forme-laravel | ||
``` | ||
|
||
|
||
Usage | ||
------------ | ||
|
||
In your config/flysystem.php file set the default driver to 's3forme' and add the connection configuration like so: | ||
|
||
```php | ||
'default' => 's3forme', | ||
|
||
'cloud' => 's3forme', | ||
|
||
'disks' => [ | ||
... | ||
's3forme' => [ | ||
'key' => 'you-key', | ||
'secret' => 'you-secret-key', | ||
'visibility' => 'public-read', // or private | ||
'bucket' => 'image', //name your bucket | ||
'endpoint' => 'http://rest.s3for.me', | ||
], | ||
... | ||
] | ||
``` | ||
|
||
In your config/app.php file add the following provider to your service providers array: | ||
|
||
```php | ||
'providers' => [ | ||
... | ||
Lemesdaniel\S3forme\Providers\S3formeFilesystemServiceProvider::class, | ||
... | ||
] | ||
``` |