tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.23k stars 1.55k forks source link

Add support for Carbon 3.X #2247

Closed RBFraphael closed 3 months ago

RBFraphael commented 3 months ago

Adds ^3.0 version tag to the nesbot/carbon dependency on composer.json file, to fit on Laravel 11's dependencies.

amir-khoshbakht commented 3 months ago

https://github.com/briannesbitt/Carbon/blob/6b6383ae361003ec25488d0a1cde9551bb25e955/src/Carbon/Traits/Difference.php#L378

In the new version of the Carbon library, the signature of this function has changed from true to false. this breaks blacklisting functionality. https://github.com/tymondesigns/jwt-auth/blob/51620ebd5b68bb3ce9e66ba86bda303ae5f10f7f/src/Blacklist.php#L100 more here : https://github.com/tymondesigns/jwt-auth/issues/2250#issue-2203964937