tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.3k stars 1.54k forks source link

Target [Illuminate\Contracts\Routing\ResponseFactory] is not instantiable while building [Tymon\JWTAuth\Middleware\GetUserFromToken]. #1100

Open ashishbansal-kmc opened 7 years ago

ashishbansal-kmc commented 7 years ago

I got this error Target [Illuminate\Contracts\Routing\ResponseFactory] is not instantiable while building [Tymon\JWTAuth\Middleware\GetUserFromToken]. and my composer.json file is { "name": "laravel/lumen", "description": "The Laravel Lumen Framework.", "keywords": ["framework", "laravel", "lumen"], "license": "MIT", "type": "project", "require": { "php": ">=5.5.9", "laravel/lumen-framework": "5.2.*", "vlucas/phpdotenv": "~2.2", "laravelista/lumen-vendor-publish": "^1.0", "tymon/jwt-auth": "^0.5.4", "illuminate/routing": "^5.1" }, "require-dev": { "fzaninotto/faker": "~1.4", "phpunit/phpunit": "~4.0" }, "autoload": { "psr-4": { "App\": "app/" }, "files": [ "app/helpers.php" ] }, "autoload-dev": { "classmap": [ "tests/", "database/" ] } }

please provide me solution for this

ranierif commented 7 years ago

I have same error, and I can not fix it. In the local environment runs right, but in the production of the same error:

Target [Tymon\JWTAuth\Providers\JWT\JWTInterface] is not instantiable while building [Tymon\JWTAuth\Middleware\GetUserFromToken, Tymon\JWTAuth\JWTAuth, Tymon\JWTAuth\JWTManager].

Any help for this?

jjhesk commented 6 years ago

same in here the class is not instantiable while building