From e9a1eb8ab0a60f4bc69976d505f70f38002ba91b Mon Sep 17 00:00:00 2001 From: rahulhaque Date: Tue, 2 Feb 2021 20:39:42 +0600 Subject: [PATCH] Lumen documentation update (#1976) --- docs/lumen-installation.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/lumen-installation.md b/docs/lumen-installation.md index 039abc521..8698e783c 100644 --- a/docs/lumen-installation.md +++ b/docs/lumen-installation.md @@ -8,7 +8,19 @@ composer require tymon/jwt-auth ------------------------------------------------------------------------------- -### Bootstrap file changes. +### Copy the config + +Copy the `config` file from `vendor/tymon/jwt-auth/config/config.php` to `config` folder of your Lumen application and rename it to `jwt.php` + +Register your config by adding the following in the `bootstrap/app.php` before middleware declaration. + +```php +$app->configure('jwt'); +``` + +------------------------------------------------------------------------------- + +### Bootstrap file changes Add the following snippet to the `bootstrap/app.php` file under the providers section as follows: