user image

Joseph Morgan
Published in : 2022-02-18

tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0

Laravel

Hello everyone, I am facing a problem while installing tymon/jwt-auth with Laravel 9 I am getting this error 

tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0,

I tried to use 

composer require tymon/jwt-auth:^1.0. --ignore-platform-reqs

but no change

Comments

Mohamed Atef Date : 2022-02-18

Best answers

46

Best answers

46

for sorry tymon/jwt-auth is not compatible with PHP 8 and to use Laravel 9 you need PHP 8 so, please use lcobucci/jwt instead of tymon/jwt-auth if you want to use Laravel 9 you can install it easily using 

composer require lcobucci/jwt

Note that you might need to upgrade the illuminate/auth to 9 or 8 using 

composer require illuminate/auth:^9.1.0

Good luck

Joseph Morgan Date : 2022-02-18

Thanks this package working fine

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

How can I use arabic words, paragraphs in the faker?
Publish date: 2022-03-06 | Comments: 1
Get user location (city - country) from his IP address
Publish date: 2022-03-02 | Comments: 2
Laravel error 419 page expired
Publish date: 2021-04-10 | Comments: 2
How to pass valiables to 404 error page in laravel?
Publish date: 2022-02-21 | Comments: 2