@@ -74,29 +74,37 @@ Now you're all set!
7474
7575First, configure your LDAP connection in the ` config/adldap.php ` file.
7676
77- Then, you can perform all methods on your Adldap connection through its facade like so:
77+ Then, you can perform methods on your default connection through the ` Adldap ` facade like so:
7878
7979``` php
8080use Adldap\Laravel\Facades\Adldap;
8181
82- // Finding a user.
82+ // Finding a user:
8383$user = Adldap::search()->users()->find('john doe');
8484
85- // Searching for a user.
85+ // Searching for a user:
8686$search = Adldap::search()->where('cn', '=', 'John Doe')->get();
8787
8888// Running an operation under a different connection:
8989$users = Adldap::getProvider('other-connection')->search()->users()->get();
9090
91- // Creating a user.
91+ // Creating a user:
9292$user = Adldap::make()->user([
9393 'cn' => 'John Doe',
9494]);
9595
96+ // Saving a user:
9697$user->save();
9798```
9899
99- Or you can inject the Adldap interface into your controllers, which gives
100+ If you do not specify an alternate connection using ` getProvider() ` , your
101+ ` default ` connection will be utilized for all methods.
102+
103+ Upon performing operations without specifying a connection, your default
104+ connection will be connected to and bound automatically
105+ using your configured username and password.
106+
107+ You can also inject the Adldap interface into your controllers, which gives
100108you access to all of your LDAP connections and resources.
101109
102110``` php
0 commit comments