承接 bitmax/laravel-jwt 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitmax/laravel-jwt

Composer 安装命令:

composer require bitmax/laravel-jwt

包简介

Laravel JWT LIB

README 文档

README

Simple JWT Auth that provide two routes /login and /me

Configuration

Add a guard named api with a driver api to config/auth.php.

Example:

'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        "api" => [
            'driver' => 'api'
        ]
        ...
    ],

Add the middleare auth:api for routes you want to protect

Example:

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

License

The Laravel framework is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-05