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

Commit 47002ad

Browse files
authored
Update readme.md
1 parent 3b2ae13 commit 47002ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,18 @@ Now you're all set!
6969
You can perform all methods on Adldap through its facade like so:
7070
```php
7171
// Finding a user.
72-
$user = Adldap::getDefaultProvider()->search()->users()->find('john doe');
72+
$user = Adldap::search()->users()->find('john doe');
7373

7474
// Searching for a user.
75-
$search = Adldap::getDefaultProvider()->search()->where('cn', '=', 'John Doe')->get();
75+
$search = Adldap::search()->where('cn', '=', 'John Doe')->get();
7676

7777
// Authenticating.
78-
if (Adldap::getDefaultProvider()->auth()->attempt($username, $password)) {
78+
if (Adldap::auth()->attempt($username, $password)) {
7979
// Passed!
8080
}
81+
82+
// Running an operation under a different connection:
83+
$users = Adldap::getProvider('other-connection')->search()->users()->get();
8184
```
8285

8386
Or you can inject the Adldap contract:

0 commit comments

Comments
 (0)