Closed hafezdivandari closed 3 weeks 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.
Can you explain a bit more why it is redundant?
@taylorotwell sure. Since Passport 9.0, according to docs PASSPORT_PERSONAL_ACCESS_CLIENT_ID
and PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET
env variables should be set to be able to issue new personal access tokens. Since then, we are using these 2 values to issue a new PAT.
But before that change on 9.x, we were finding the first active personal access client on oauth_personal_access_clients
, and using the found client to issue a new PAT, that's why we were copying any new personal access clients from oauth_clients
to oauth_personal_access_clients
. We have no usage for oauth_personal_access_clients
and its model anymore.
Personal access client table (
oauth_personal_access_clients
) and its model (Laravel\Passport\PersonalAccessClient
) is redundant since Passport 9.0.Changes
oauth_personal_access_clients
table has been removed.Laravel\Passport\PersonalAccessClient
model has been removed.Passport::$personalAccessClientModel
property has been removed.Passport::usePersonalAccessClientModel()
method has been removed.Passport::personalAccessClientModel()
method has been removed.Passport::personalAccessClient()
method has been removed.