Skip to content

Commit b1e26e4

Browse files
committed
Merge pull request artdarek#48 from citricsquid/patch-1
Clarify installation instructions
2 parents 451fc12 + 771a598 commit b1e26e4

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

README.md

+23-15
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,29 @@ Use composer to install this package.
5656
$ composer update
5757
```
5858

59+
### Registering the Package
60+
61+
Register the service provider within the ```providers``` array found in ```app/config/app.php```:
62+
63+
```php
64+
'providers' => array(
65+
// ...
66+
67+
'Artdarek\OAuth\OAuthServiceProvider'
68+
)
69+
```
70+
71+
Add an alias within the ```aliases``` array found in ```app/config/app.php```:
72+
73+
74+
```php
75+
'aliases' => array(
76+
// ...
77+
78+
'OAuth' => 'Artdarek\OAuth\Facade\OAuth',
79+
)
80+
```
81+
5982
## Configuration
6083

6184
There are two ways to configure oauth-4-laravel.
@@ -110,21 +133,6 @@ return array(
110133
);
111134
```
112135

113-
114-
### Registering the Package
115-
116-
Add an alias to the bottom of app/config/app.php
117-
118-
```php
119-
'OAuth' => 'Artdarek\OAuth\Facade\OAuth',
120-
```
121-
122-
and register this service provider at the bottom of the `$providers` array:
123-
124-
```php
125-
'Artdarek\OAuth\OAuthServiceProvider',
126-
```
127-
128136
### Credentials
129137

130138
Add your credentials to ``app/config/packages/artdarek/oauth-4-laravel/config.php`` or ``app/config/oauth-4-laravel.php`` (depending on which option of configuration you choose)

0 commit comments

Comments
 (0)