Closed hafezdivandari closed 4 months ago
Thanks for submitting a PR!
Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.
Pull requests that are abandoned in draft may be closed due to inactivity.
$user->getProviders()
has been added recently on PR #1768, this method actually must not returnnull
in a healthy environment / configuration. Also, it is not possible to use Passport with adatabase
provider. This PR fixes these 2 situations on this method.User
model by default) andToken
model depends on the client'sprovider
. This PR makes sure we are retrieving the tokens associated with the right authenticable model and adds integration tests for this.user->tokens()
relation is morphable, so we know which model is the owner of the key, on Passport we should check the client'sprovider
to know which model is the owner of the key.