PHP-Open-Source-Saver / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
MIT License
729 stars 113 forks source link

Add support for Carbon^3 #236

Closed mfn closed 8 months ago

mfn commented 8 months ago

Summary

Laravel 11 support was recently added via https://github.com/PHP-Open-Source-Saver/jwt-auth/pull/233

Laravel 11 supports both carbon 2 & 3, see https://github.com/laravel/framework/blob/ae2f9413b5bd8637c363e6fafffda31c88e56c9e/composer.json#L39

"nesbot/carbon": "^2.72.2|^3.0",

However, projects running Laravel 11 and also requiring carbon:^3 (or have other dependencies requiring it), cannot install jwt-auth because we still only support carbon^2.

This PR fixes that, see also https://github.com/PHP-Open-Source-Saver/jwt-auth/issues/230#issuecomment-2002016625

Overview of changes

mfn commented 8 months ago

@Messhias thanks for merging, can you please make a new release too?

Messhias commented 8 months ago

@Messhias thanks for merging, can you please make a new release too?

Ok, I'll release it right now.