You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: