Jwt-auth: Artisan command to generate token does not work

Created on 10 Aug 2018  路  1Comment  路  Source: tymondesigns/jwt-auth

Subject of the issue

Generation of a token does not work. In the command you don't have a handle() method.
Instead, fire() is used, and laravel does not like that.

Your environment

| Bug? | yes
| New Feature? | no
| Framework | Laravel
| Framework version | 5.6.33
| Package version | 0.5.12
| PHP version | 7.2.8

Steps to reproduce

Run command php arisan jwt:generate

Expected behaviour

Generate a new secret token

Actual behaviour

ReflectionException / Method handle() does not exist

Most helpful comment

use this:

composer require tymon/jwt-auth:dev-develop

and the command has changed to

php artisan jwt:secret

>All comments

use this:

composer require tymon/jwt-auth:dev-develop

and the command has changed to

php artisan jwt:secret
Was this page helpful?
0 / 5 - 0 ratings