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

Commit 9891974

Browse files
committed
More tweaks.
1 parent 532f031 commit 9891974

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/auth/upgrading.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ You must specify your LDAP login attribute as well as your `eloquent` attribute.
2626
// v3.0
2727

2828
'usernames' => [
29+
2930
'ldap' => 'mail',
3031

3132
'eloquent' => 'email',
33+
3234
],
3335
```
3436

@@ -39,8 +41,10 @@ of the `ldap` option inside the `usernames` array.
3941

4042
#### Binding Users to Model
4143

42-
If you were using the `bind_user_to_model` option, you previously inserted
43-
the following trait onto your `User` model:
44+
The configuration option `bind_user_to_model` has been removed
45+
in favor of utilizing the trait itself instead.
46+
47+
If you previously inserted the following trait onto your `User` model:
4448

4549
```php
4650
Adldap\Laravel\Traits\AdldapUserModelTrait
@@ -63,8 +67,8 @@ class User extends Authenticatable
6367
use HasLdapUser;
6468
```
6569

66-
The configuration option itself (inside `config/adldap_auth.php`) has
67-
been removed in favor of utilizing the trait itself instead.
70+
You will then use the property `$user->ldap` instead of `$user->adldapUser`
71+
to access the users LDAP model throughout your application.
6872

6973
#### Limitation Filter
7074

0 commit comments

Comments
 (0)