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 +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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
4650Adldap\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
You can’t perform that action at this time.
0 commit comments