Skip to content

Instantly share code, notes, and snippets.

@fokosun
Created July 24, 2017 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fokosun/38d01aa54533ae47241d72d5531136b4 to your computer and use it in GitHub Desktop.
Save fokosun/38d01aa54533ae47241d72d5531136b4 to your computer and use it in GitHub Desktop.
How to install and configure tymon-jwt on Lumen5.4
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