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

Commit 68c95da

Browse files
committed
Spacing.
1 parent f9e2e52 commit 68c95da

File tree

1 file changed

+53
-54
lines changed

1 file changed

+53
-54
lines changed

readme.md

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -160,69 +160,68 @@ Open your `config/auth.php` configuration file and change the following:
160160
Change the `provider` entry inside the `web` authentication guard:
161161

162162
```php
163+
/*
164+
|--------------------------------------------------------------------------
165+
| Authentication Guards
166+
|--------------------------------------------------------------------------
167+
|
168+
| Next, you may define every authentication guard for your application.
169+
| Of course, a great default configuration has been defined for you
170+
| here which uses session storage and the Eloquent user provider.
171+
|
172+
| All authentication drivers have a user provider. This defines how the
173+
| users are actually retrieved out of your database or other storage
174+
| mechanisms used by this application to persist your user's data.
175+
|
176+
| Supported: "session", "token"
177+
|
178+
*/
163179

164-
/*
165-
|--------------------------------------------------------------------------
166-
| Authentication Guards
167-
|--------------------------------------------------------------------------
168-
|
169-
| Next, you may define every authentication guard for your application.
170-
| Of course, a great default configuration has been defined for you
171-
| here which uses session storage and the Eloquent user provider.
172-
|
173-
| All authentication drivers have a user provider. This defines how the
174-
| users are actually retrieved out of your database or other storage
175-
| mechanisms used by this application to persist your user's data.
176-
|
177-
| Supported: "session", "token"
178-
|
179-
*/
180-
181-
'guards' => [
182-
'web' => [
183-
'driver' => 'session',
184-
'provider' => 'adldap',
185-
],
186-
'api' => [
187-
'driver' => 'token',
188-
'provider' => 'users',
189-
],
180+
'guards' => [
181+
'web' => [
182+
'driver' => 'session',
183+
'provider' => 'adldap',
184+
],
185+
'api' => [
186+
'driver' => 'token',
187+
'provider' => 'users',
190188
],
189+
],
191190
```
192191

193192
Now add the `adldap` provider to your `providers` array:
194193

195194
```php
196195
/*
197-
|--------------------------------------------------------------------------
198-
| User Providers
199-
|--------------------------------------------------------------------------
200-
|
201-
| All authentication drivers have a user provider. This defines how the
202-
| users are actually retrieved out of your database or other storage
203-
| mechanisms used by this application to persist your user's data.
204-
|
205-
| If you have multiple user tables or models you may configure multiple
206-
| sources which represent each model / table. These sources may then
207-
| be assigned to any extra authentication guards you have defined.
208-
|
209-
| Supported: "database", "eloquent"
210-
|
211-
*/
212-
'providers' => [
213-
'adldap' => [
214-
'driver' => 'adldap',
215-
'model' => App\User::class,
216-
],
217-
'users' => [
218-
'driver' => 'eloquent',
219-
'model' => App\User::class,
220-
],
221-
// 'users' => [
222-
// 'driver' => 'database',
223-
// 'table' => 'users',
224-
// ],
196+
|--------------------------------------------------------------------------
197+
| User Providers
198+
|--------------------------------------------------------------------------
199+
|
200+
| All authentication drivers have a user provider. This defines how the
201+
| users are actually retrieved out of your database or other storage
202+
| mechanisms used by this application to persist your user's data.
203+
|
204+
| If you have multiple user tables or models you may configure multiple
205+
| sources which represent each model / table. These sources may then
206+
| be assigned to any extra authentication guards you have defined.
207+
|
208+
| Supported: "database", "eloquent"
209+
|
210+
*/
211+
'providers' => [
212+
'adldap' => [
213+
'driver' => 'adldap',
214+
'model' => App\User::class,
215+
],
216+
'users' => [
217+
'driver' => 'eloquent',
218+
'model' => App\User::class,
225219
],
220+
// 'users' => [
221+
// 'driver' => 'database',
222+
// 'table' => 'users',
223+
// ],
224+
],
226225
```
227226

228227
### Usage

0 commit comments

Comments
 (0)