Hi,
After installing the 0.5.10 version of jwt-auth in my Lumen 5.4 project.
I'm getting the below error
Interface 'Tymon\JWTAuth\Contracts\JWTSubject' not found
my Auth controller:
use IlluminateAuthAuthenticatable;
use LaravelLumenAuthAuthorizable;
use IlluminateDatabaseEloquentModel;
use IlluminateContractsAuthAuthenticatable as AuthenticatableContract;
use IlluminateContractsAuthAccessAuthorizable as AuthorizableContract;
use TymonJWTAuthContractsJWTSubject;
use IlluminateDatabaseEloquentSoftDeletes;
//use JenssegersMongodbEloquentModel as Eloquent;
class Users extends Model implements JWTSubject, AuthenticatableContract {
use SoftDeletes,
Authenticatable;
You need to use the new v1.0.0 beta version in order to work with 5.4.
It's resolved now.
@kohenkatz Thanks a lot for your reply :)
@kohenkatz could you please explain how to install v1.0.0
Update your composer.json with this dependency:
"tymon/jwt-auth": "^1.0.0-beta.3@dev"
@kohenkatz Thanks a lot
Most helpful comment
Update your
composer.jsonwith this dependency: