This repository was archived by the owner on Jul 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-38
lines changed
Expand file tree Collapse file tree 1 file changed +1
-38
lines changed Original file line number Diff line number Diff line change @@ -183,51 +183,14 @@ php artisan vendor:publish --tag="adldap"
183183
184184Open 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
You can’t perform that action at this time.
0 commit comments