Skip to content

Commit

Permalink
Merge pull request #165 from andrewminion-luminfire/documentation
Browse files Browse the repository at this point in the history
add a Lumen example
  • Loading branch information
stobrien89 authored Sep 27, 2023
2 parents fdecc2c + 0da8724 commit 0c67856
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ return [
],
'region' => env('AWS_REGION', 'us-east-1'),
'version' => 'latest',

// You can override settings for specific services
'Ses' => [
'region' => 'us-east-1',
Expand Down Expand Up @@ -137,6 +136,17 @@ $s3->putObject(array(
));
```

To use in Lumen, you need to retrieve it from the service container a bit differently:

```php
$s3 = app('aws')->createClient('s3');
$s3->putObject(array(
'Bucket' => 'YOUR_BUCKET',
'Key' => 'YOUR_OBJECT_KEY',
'SourceFile' => '/the/path/to/the/file/you/are/uploading.ext',
));
```

## Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.
Expand Down

0 comments on commit 0c67856

Please sign in to comment.