Created
July 24, 2017 14:23
-
-
Save fokosun/38d01aa54533ae47241d72d5531136b4 to your computer and use it in GitHub Desktop.
How to install and configure tymon-jwt on Lumen5.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pull in the package using composer | |
$ composer require tymon/jwt-auth:"^1.0@dev" | |
next run composer update | |
$ composer update | |
open AppServiceProvder and add the following code into the register method | |
$this->app->register(\Tymon\JWTAuth\Providers\LumenServiceProvider::class); | |
just follow this tutorial | |
https://iwader.co.uk/post/tymon-jwt-auth-with-lumen-5-2 | |
afterwards run composer dump-autoload | |
everything should work just fine now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment