Skip to content

Commit 8f7b750

Browse files
committed
Merge pull request aws#2 from jasonlewis/master
Improve the usage instructions
2 parents d69efc8 + 8f25f12 commit 8f7b750

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,38 @@ project's `composer.json`.
2020

2121
## Usage
2222

23-
First you have to register the AWS Service Provider when bootstrap your Laravel application. You can either provide an
24-
array of configuration options…
23+
First you have to register the AWS Service Provider when bootstraping your Laravel application. Create a new `app/config/aws.php` configuration file with the following options.
24+
25+
```php
26+
return array(
27+
'key' => '<your-aws-access-key-id>',
28+
'secret' => '<your-aws-secret-access-key>',
29+
'region' => Region::US_WEST_2,
30+
);
31+
```
32+
33+
Now find the `providers` key in `app/config/app.php` and register the AWS Service Provider.
34+
35+
```php
36+
'providers' => array(
37+
38+
....
39+
40+
'Aws\Laravel\AwsServiceProvider',
41+
42+
)
43+
```
44+
45+
Or if you'd like to register the configuration options at runtime.
2546

2647
```php
2748
use Aws\Common\Enum\Region;
2849
use Aws\Laravel\AwsServiceProvider;
2950
use Illuminate\Foundation\Application;
3051

31-
$app = new Application();
32-
// ...
52+
// Instantiate a new application. This is done by the Laravel framework and the instance is available
53+
// in app/start/global.php for you to use.
54+
$app = new Application;
3355

3456
$app->register(new AwsServiceProvider($app), array(
3557
'config' => array(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy