Package Data | |
---|---|
Maintainer Username: | cvogit |
Maintainer Contact: | cvogit@gmail.com (cvogit) |
Package Create Date: | 2017-09-07 |
Package Last Update: | 2017-11-17 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-04-22 03:12:39 |
Package Statistics | |
---|---|
Total Downloads: | 58 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 0 |
Total Forks: | 1 |
Total Open Issues: | 0 |
LumenJWT is an Http guard for Lumen, a Laravel micro framework.
Use Composer to install LumenJWT and its the dependencies.
$ composer require cvogit/LumenJWT
$ composer install
In bootstrap/app.php enable the middleware:
$app->routeMiddleware([
'jwt' => Cvogit\LumenJWT\Http\Middleware\JwtGuard::class,
]);
In .env
JWT_KEY
and give it a random string.JWT_EXP
, set the time until the token expire in seconds, if not set the default is 7200 seconds.Please visit the Wiki.
MIT