jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

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

Open webloper opened this issue 6 years ago • 16 comments

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?

webloper avatar Oct 26 '17 21:10 webloper

same

zengsuyi avatar Oct 31 '17 06:10 zengsuyi

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"

ReneRautenbach avatar Nov 01 '17 09:11 ReneRautenbach

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

jampack avatar Nov 10 '17 15:11 jampack

@ReneRautenbach this version old?

izopstropp avatar Nov 16 '17 02:11 izopstropp

@ReneRautenbach i got this when i try

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

musman92 avatar Mar 07 '18 18:03 musman92

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

modpluz avatar Apr 04 '18 13:04 modpluz

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

netEmmanuel avatar Aug 01 '18 12:08 netEmmanuel

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!

moazam1 avatar Sep 18 '18 16:09 moazam1

Same problem

measproem avatar Oct 08 '18 05:10 measproem

same

majidkarimizadeh avatar Dec 13 '18 09:12 majidkarimizadeh

Same problem

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

measproem avatar Dec 18 '18 15:12 measproem

Same problem

Zubair-Iftikhar avatar Dec 30 '18 09:12 Zubair-Iftikhar

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

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

nielspeen avatar Jan 08 '19 16:01 nielspeen

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.

stale[bot] avatar Dec 26 '20 02:12 stale[bot]

same problem persists

shashwat-sanjeev avatar Aug 09 '22 09:08 shashwat-sanjeev

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

ghost avatar Sep 12 '22 20:09 ghost