Skip to content

Commit

Permalink
Update passport.md
Browse files Browse the repository at this point in the history
Add missing information
  • Loading branch information
SuperDJ authored Oct 18, 2023
1 parent 8a5dd87 commit 58d8cbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/basic-usage/passport.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ You need to extend the Client model to make it possible to add the required trai
The extended Client should either provide a `$guard_name` property or a `guardName()` method.
They should return a string that matches the [configured](https://laravel.com/docs/master/passport#installation) guard name for the passport driver.

To tell Passport to use this extended Client, add the rule below to the `boot` method of your `App\Providers\AuthServiceProvider` class.
```php
Passport::useClientModel(\App\Models\Client::class); // Use the namespace of your extended Client.
```

## Middleware
All middleware provided by this package work with the Client.

Expand Down

0 comments on commit 58d8cbb

Please sign in to comment.