PHP code example of lukevear / jwt-auth-guard
1. Go to this page and download the library: Download lukevear/jwt-auth-guard 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/ */
lukevear / jwt-auth-guard example snippets
'providers' => [
...
LukeVear\JWTAuthGuard\JWTAuthGuardServiceProvider::class,
]
'guards' => [
...
'api' => [
'driver' => 'jwt-auth',
...
],
],