Skip to content

Commit 28effbe

Browse files
committed
formatting
1 parent 5aec410 commit 28effbe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

passport.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,14 @@ You may define your API's scopes using the `Passport::tokensCan` method in the `
658658
<a name="default-scope"></a>
659659
### Default Scope
660660

661-
If a client decides to omit the scope the server still choose to set a default scope. You can achieve setting a default scope by using the `setDefaultScope`. Values need to be separated with a space or be passed as an array:
661+
If a client does not request any specific scopes, you may configure your Passport server to attach a default scope to the token using the `setDefaultScope` method. Typically, you should call this method from the `boot` method of your `AuthServiceProvider`:
662662

663663
use Laravel\Passport\Passport;
664664

665-
Passport::setDefaultScope('place-orders check-status');
665+
Passport::setDefaultScope([
666+
'check-status',
667+
'place-orders',
668+
]);
666669

667670
<a name="assigning-scopes-to-tokens"></a>
668671
### Assigning Scopes To Tokens

0 commit comments

Comments
 (0)