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] Add support for laravel/sanctum ^3.0 #57

Merged
merged 5 commits into from Feb 23, 2023

Conversation

lupinitylabs
Copy link
Member

This PR will add support for version 3 of Sanctum, which is used when creating new Laravel apps by default. Because Protector only supported ^2.4, the attempt to use Protector in new Laravel projects will produce a composer conflict.

As it seems from reading https://github.com/laravel/sanctum/releases, Sanctum 3 mainly just dropped support for older Laravel versions, but did not introduce breaking changes besides laravel/sanctum#252, that requires an extra expires_at column for personal access tokens. As this is the obligation of the app developers using Protector and Protector is not actively managing that itself, we should be good.

Copy link
Contributor

@gael-connan-cybex gael-connan-cybex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested. actually still works with sanctum 2.4 and 3.01, even when not following the upgrade guide.

@lupinitylabs lupinitylabs changed the title Add support for laravel/sanctum ^3.0 [2.x] Add support for laravel/sanctum ^3.0 Oct 25, 2022
@lupinitylabs lupinitylabs merged commit c2167de into master Feb 23, 2023
@lupinitylabs lupinitylabs deleted the feature/bump-sanctum-version branch February 23, 2023 13:01
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.

None yet

2 participants