php artisan jwt:generate - is broken!
php artisan jwt:generate
In BoundMethod.php line 135:
Method Tymon\JWTAuth\Commands\JWTGenerateCommand::handle() does not exist
me too
This is because the command class adheres to the Laravel 4 command interface, which uses a fire() method instead of handle(). As a quick and dirty fix you can add the following to Tymon\JWTAuth\Commands\JWTGenerateCommand:
// JWTGenerateCommand.php
public function handle()
{
$this->fire();
}
Alternatively, the issue is fixed in the development version so you could pull in that version and use the new docs. No idea how stable the dev version is at the moment.
Since we are doing dirty hacks you can also just change the method fire() to handle() within \vendor\tymon\jwt-auth\src\Commands\JWTGenerateCommand.php
Yes I'm aware of this.. version 0.5.* doesn't have full support for Laravel 5.5. You would need to use the newer release
Most helpful comment
This is because the command class adheres to the Laravel 4 command interface, which uses a
fire()method instead ofhandle(). As a quick and dirty fix you can add the following toTymon\JWTAuth\Commands\JWTGenerateCommand:Alternatively, the issue is fixed in the development version so you could pull in that version and use the new docs. No idea how stable the dev version is at the moment.