You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ return [
90
90
],
91
91
'region' => env('AWS_REGION', 'us-east-1'),
92
92
'version' => 'latest',
93
-
93
+
94
94
// You can override settings for specific services
95
95
'Ses' => [
96
96
'region' => 'us-east-1',
@@ -109,7 +109,7 @@ the SDK's User Guide.
109
109
## Usage
110
110
111
111
In order to use the AWS SDK for PHP within your app, you need to retrieve it from the [Laravel Service
112
-
Container](https://laravel.com/docs/container#binding). The following example uses the Amazon S3 client to upload a file.
112
+
Container](https://laravel.com/docs/container#binding). The following example uses the Amazon S3 client to upload a file (in the full Laravel framework).
113
113
114
114
```php
115
115
$s3 = App::make('aws')->createClient('s3');
@@ -121,7 +121,7 @@ $s3->putObject(array(
121
121
```
122
122
123
123
If the AWS facade is registered within the `aliases` section of the application configuration, you can also use the
124
-
following technique.
124
+
following technique (in the full Laravel framework).
125
125
126
126
```php
127
127
$s3 = AWS::createClient('s3');
@@ -132,6 +132,17 @@ $s3->putObject(array(
132
132
));
133
133
```
134
134
135
+
To use in Lumen, you need to retrieve it from the service container a bit differently:
0 commit comments