jeudi 21 mars 2019

Laravel Passport: setDefaultScope not working with Personal Access Token

According to Laravel Passport documentations, i can set default scope to tokens using,

Passport::setDefaultScope([
    'my-scope'
]);

But this does not seems to be working with Personal Access Tokens. I checked the documentation to see if this method does not work with Personal Access Tokens. Did not find anything.

So the questions is, How can i set default scope for personal access tokens ?

Note: I am doing this with vue.js. In case it is relevant.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire