tymondesigns / jwt-auth

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

Class 'Tymon\JWTAuth\Providers\LumenServiceProvider' not found #1361

Open webloper opened 6 years ago

webloper commented 6 years ago

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?

zengsuyi commented 6 years ago

same

ReneRautenbach commented 6 years ago

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"

jampack commented 6 years ago

@Frondor well if you cant support at least you should not suggest such things

izopstropp commented 6 years ago

@ReneRautenbach this version old?

musman92 commented 6 years ago

@ReneRautenbach i got this when i try

[InvalidArgumentException] Could not find package tymon/jwt-auth in a version matching 1.0@dev

modpluz commented 6 years ago

composer require tymon/jwt-auth:"^1.0.0-rc.2" resolves this issue for me.

netEmmanuel commented 5 years ago

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
moazam1 commented 5 years ago

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!

measproem commented 5 years ago

Same problem

majidkarimizadeh commented 5 years ago

same

measproem commented 5 years ago

Same problem

I fixed problem quickly by using: https://github.com/firebase/php-jwt sorry that I recommend it is not [tymondesigns/jwt-auth]

Zubair-Iftikhar commented 5 years ago

Same problem

nielspeen commented 5 years ago

Using a more recent version fixes this. Check the releases page.

Currently using "tymon/jwt-auth": "^1.0.0-rc.3" which works fine.

stale[bot] commented 3 years ago

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.

shashwat-sanjeev commented 1 year ago

same problem persists

ghost commented 1 year ago

my version php is 8.1.6 I just run this cmd and it work successfully composer require tymon/jwt-auth --ignore-platform-reqs