-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
In AccessTokenController class you access the Token model directly (see below). You should avoid doing this since Laravel provides the Passport::token() where you can get the instance of the Token model.

So, instead of doing like above you should:
$query = Passport::token()->where('user_id', $token->user_id)->where('client_id', $token->client_id);
It's very important since, like in my case, people may be using a different implementation of the model.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels