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
+23-15
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,29 @@ Use composer to install this package.
56
56
$ composer update
57
57
```
58
58
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
+
59
82
## Configuration
60
83
61
84
There are two ways to configure oauth-4-laravel.
@@ -110,21 +133,6 @@ return array(
110
133
);
111
134
```
112
135
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
-
128
136
### Credentials
129
137
130
138
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