Laravel 整合 JWT 的方法

一.安装 咱们使用Composer安装jwt扩展包: php composer require tymon/jwt-auth 0.5.* 二.配置 安装完成后,须要在 config/app.php 中注册相应的服务提供者: html Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class 而后注册须要用到的对应门面: 'aliases' => [
相关文章
相关标签/搜索