Jwt-auth: There are no commands defined in the "jwt" namespace problem

Created on 27 Mar 2019  路  2Comments  路  Source: tymondesigns/jwt-auth

Your environment

| Q | A
| ----------------- | ---
| Bug? | yes
| New Feature? | no
| Framework | Laravel
| Framework version | 5.7.28
| Package version | 1.x.y
| PHP version | 7.1.27

Steps to reproduce

i followed the same docs steps but when i run
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
i don't get the config/jwt.php file also when i run
php artisan jwt:secret
i get this error

There are no commands defined in the "jwt" namespace.

i tried many solutions like clearing cash but always the same problem

Most helpful comment

finally find the solution
we should update the version manually in composer.json to for laravel >=5.5 to "tymon/jwt-auth": "^1.0" and then run composer update

All 2 comments

finally find the solution
we should update the version manually in composer.json to for laravel >=5.5 to "tymon/jwt-auth": "^1.0" and then run composer update

finally find the solution
we should update the version manually in composer.json to for laravel >=5.5 to "tymon/jwt-auth": "^1.0" and then run composer update

updating composer.json helps me :) thanks !!

Was this page helpful?
0 / 5 - 0 ratings