jwt-auth
jwt-auth copied to clipboard
Class 'Tymon\JWTAuth\Providers\LumenServiceProvider' not found
Hi,
Here is my composer.json snippet
"require": { "php": ">=7.0", "laravel/lumen-framework": "5.5.*", "vlucas/phpdotenv": "~2.2", "tymon/jwt-auth": "^0.5.12" },
and I'm getting this error
[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Tymon\JWTAuth\Providers\LumenServiceProvider' not found
I followed this url for setup. I tried few stackoverflow solutions to resolve this issue, but still not able to resolve.
Please tell what am I doing wrong?
same
Hi I had the same issue - I then ran the following and it sorted out the issue composer require tymon/jwt-auth:"^1.0@dev"
@Frondor well if you cant support at least you should not suggest such things
@ReneRautenbach this version old?
@ReneRautenbach i got this when i try
[InvalidArgumentException] Could not find package tymon/jwt-auth in a version matching 1.0@dev
composer require tymon/jwt-auth:"^1.0.0-rc.2"
resolves this issue for me.
You can safely remove from your app.php
file
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
'JWTFactory' => Tymon\JWTAuth\Facades\JWTFactory::class
Almost one year passed but this issue is still remain active. I do see regular updates on this package. I hope package developer will consider fixing this issue ASAP now!
Same problem
same
Same problem
I fixed problem quickly by using: https://github.com/firebase/php-jwt sorry that I recommend it is not [tymondesigns/jwt-auth]
Same problem
Using a more recent version fixes this. Check the releases page.
Currently using "tymon/jwt-auth": "^1.0.0-rc.3" which works fine.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
same problem persists
my version php is 8.1.6 I just run this cmd and it work successfully composer require tymon/jwt-auth --ignore-platform-reqs