wisoot/jwt-guard
Composer 安装命令:
composer require wisoot/jwt-guard
包简介
Laravel Guard Driver using JSON Web Token (JWT)
README 文档
README
Jwt Guard is alternative Laravel 5.2 Guard Driver which is implemented using JSON Web Token (JWT)
The MIT License (MIT). Please see License File for more information.
Install
To install this package you will need:
- Laravel 5.2
- PHP 5.6+
Via Composer
$ composer require wisoot/jwt-guard
Add the Service Provider
Open config/app.php and, to your providers array at the bottom, add:
WWON\JwtGuard\Providers\JwtGuardServiceProvider::class
Publish config file and database migration
php artisan vendor:publish --provider="WWON\JwtGuard\Providers\JwtGuardServiceProvider"
Update jwt.php config to suit your project, run the migration, then you are good to go.
Usage
In config/auth.php config file you have access to jwt driver.
统计信息
- 总下载量: 703
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-16