Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Allow customizing the query used to get the token #124

Merged
merged 2 commits into from
Apr 13, 2020

Conversation

themsaid
Copy link
Member

In reference to this issue #9

You can already customize how a token is generated by overriding the createToken method in your tokenable model.

This PR adds the ability to customize how you'd retrieve a token from the DB, this can be done by defining your own PersonalAccessToken class and override the new method findToken

@taylorotwell taylorotwell merged commit 37811f8 into laravel:2.x Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants