tymondesigns / jwt-auth

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

Updating JWT Auth #1285

Open Lordkirin opened 7 years ago

Lordkirin commented 7 years ago

I have taken over an existing website that has JWT installed on it. I am having a few problems with it and so I would like to update it and se id the problem go away. The site uses Laravel 5.3 with homestead, vagrant, composer and artisan loaded on it. I have never used laraval before. Usually I use ubuntu servers with normal php code.

Is there a command to update to the new JWT. Or do I uninstall it and reload it. What would I need to do update it.

Thanks

Current composer .json file shows: { "name": "tymon/jwt-auth", "description": "JSON Web Token Authentication for Laravel 4 and 5", "keywords": [ "jwt", "auth", "authentication", "tymon", "laravel", "json web token" ], "homepage": "https://github.com/tymondesigns/jwt-auth", "license": "MIT", "authors": [ { "name": "Sean Tymon", "email": "tymon148@gmail.com", "homepage": "http://tymondesigns.com", "role": "Developer" } ], "require": { "php": ">=5.4.0", "illuminate/support": "~5.0", "illuminate/http": "~5.0", "namshi/jose": "5.0.", "nesbot/carbon": "~1.0" }, "require-dev": { "phpunit/phpunit": "4.", "mockery/mockery": "0.9.*", "illuminate/auth": "~5.0", "illuminate/database": "~5.0", "illuminate/console" : "~5.0" }, "autoload": { "psr-4": { "Tymon\JWTAuth\": "src" } }, "autoload-dev": { "psr-4": { "Tymon\JWTAuth\Test\": "tests" } }, "extra": { "branch-alias": { "dev-develop": "0.5-dev" } } }

kohenkatz commented 7 years ago

It sounds like you need to read a bit more about how composer is supposed to work.

The composer.json that you shared is the one for this project, but that doesn't actually matter at all. The composer.json that matters is the one in the root of your project. It should have a section named require that lists which version of this code it wants to use.