1. Go to this page and download the library: Download gboyegadada/lumen-jwt library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gboyegadada / lumen-jwt example snippets
# edit: bootstrap/app.php
// 1. Uncomment next 2 lines...
$app->withFacades();
$app->withEloquent();
// 2. Uncomment next 3 lines...
$app->routeMiddleware([
'auth' => App\Http\Middleware\Authenticate::class,
]);
// 3. Register Auth Service Provider
$app->register(Yega\Auth\JWTAuthServiceProvider::class);