Skip to content

Instantly share code, notes, and snippets.

@OlabodeAbesin
Created January 8, 2019 15:52
Show Gist options
  • Save OlabodeAbesin/3f112158bcd1b1c13a6e218037fa090f to your computer and use it in GitHub Desktop.
Save OlabodeAbesin/3f112158bcd1b1c13a6e218037fa090f to your computer and use it in GitHub Desktop.
Register_Jwt_middleware
protected $routeMiddleware = [
...
'jwt.auth' => 'Tymon\JWTAuth\Middleware\GetUserFromToken',
'jwt.refresh' => 'Tymon\JWTAuth\Middleware\RefreshToken',
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment