raditzfarhan/simple-jwt-auth
Composer 安装命令:
composer require raditzfarhan/simple-jwt-auth
包简介
Just a simple jwt auth for Laravel and Lumen
README 文档
README
Simple JWT Auth
Just a simple implementation of JWT Auth for Lumen
Configuration
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, ], ],
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 219
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-16