Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wyatt44's avatar
Level 14

Passport - Client Credentials Grant - Scopes

Hello everyone!

Has anyone run into the problem of assigning scopes to a client_credentials type grant using Laravel Passport?

According to the docs you can check a client for scopes (example from docs below). But I can't find anything explaining how to assign scopes to client_credentials type tokens?

Route::get('/orders', function (Request $request) {
    ...
})->middleware('client:check-status,your-scope');

Any insight would be greatly appreciated!

Have a great day :)

0 likes
1 reply
wyatt44's avatar
Level 14

Update: You can do it via an HTTP request as outlined in the docs. I still cant figure out how to do it via the command line, but I can work around that for now.

Please or to participate in this conversation.