Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit a8defe9

Browse files
committed
Closes #158
1 parent 5e0ac28 commit a8defe9

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

readme.md

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -183,51 +183,14 @@ php artisan vendor:publish --tag="adldap"
183183

184184
Open your `config/auth.php` configuration file and change the following:
185185

186-
Change the `provider` entry inside the `web` authentication guard:
187-
188-
```php
189-
/*
190-
|--------------------------------------------------------------------------
191-
| Authentication Guards
192-
|--------------------------------------------------------------------------
193-
|
194-
| Next, you may define every authentication guard for your application.
195-
| Of course, a great default configuration has been defined for you
196-
| here which uses session storage and the Eloquent user provider.
197-
|
198-
| All authentication drivers have a user provider. This defines how the
199-
| users are actually retrieved out of your database or other storage
200-
| mechanisms used by this application to persist your user's data.
201-
|
202-
| Supported: "session", "token"
203-
|
204-
*/
205-
206-
'guards' => [
207-
'web' => [
208-
'driver' => 'session',
209-
'provider' => 'users',
210-
],
211-
'api' => [
212-
'driver' => 'token',
213-
'provider' => 'users',
214-
],
215-
],
216-
```
217-
218-
Now add the `adldap` provider to your `providers` array:
186+
Change the `driver` value inside the `users` authentication provider to `adldap`:
219187

220188
```php
221189
'providers' => [
222190
'users' => [
223191
'driver' => 'adldap', // Changed from 'eloquent'
224192
'model' => App\User::class,
225193
],
226-
227-
// 'users' => [
228-
// 'driver' => 'database',
229-
// 'table' => 'users',
230-
// ],
231194
],
232195
```
233196

0 commit comments

Comments
 (0)