| Package Data | |
|---|---|
| Maintainer Username: | raditzfarhan |
| Maintainer Contact: | raditzfarhan@gmail.com (Raditz Farhan) |
| Package Create Date: | 2020-04-14 |
| Package Last Update: | 2023-02-17 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-27 03:17:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 219 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 1 |
Just a simple implementation of JWT Auth for Lumen
Edit the bootstrap/app.php file and add the following line to register the service provider:
...
$app->register(RaditzFarhan\SimpleJWTAuth\JWTAuthServiceProvider::class);
...
Then add jwt to your guards config in auth.php config file:
'guards' => [
...
'jwt' => [
'driver' => 'simple-jwt-auth',
'provider' => 'users',
],
],
Then add users provider if you haven't:
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
],
MIT. Please see the license file for more information.