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\LaravelServiceProvider' not found #1598

Open abrahamfast opened 6 years ago

abrahamfast commented 6 years ago

Not found

It does not work


php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"

It work

php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\JWTAuthServiceProvider"
rSammy commented 6 years ago

php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider" is for version 1.0

Seems like you're using version 0.5 with 1.0 docs

Quix0r commented 6 years ago

This could be important when 1.0 comes out and people need to migrate. Then this should be included in a documentation file, e.g. docs/migration-1.0.md or so.

Edit: Hey, I made like no. 6300! 😀

thecodecafe commented 6 years ago

The documentation for this project has always been lacking when it comes to keeping up with Laravel, I followed the docs with Laravel 5.4 as recommended by the docs and still got this error, @irvatoDev answer was what solved my problem, plus the artisan command on the docs for generating a secrete is php artisan jwt:secret but what really works is php artisan jwt:generate and also, I had to change the command method from fire to handle in the same Laravel 5.4 project that was recommended by in the docs... This can be improved, if theres a way I can help, just let me know. Always here for the dev community.

josegus commented 6 years ago

why is this package poor documented? what about branch 2.0?