bagisto/legacy-api
最新稳定版本:v1.0.0
Composer 安装命令:
composer require bagisto/legacy-api
包简介
README 文档
README
This package is for the user who still wants to use the older version.
2. Requirements:
- Bagisto: v1.5.1
Installation
-
Run
composer require bagisto/legacy-api. -
Run
php artisan jwt:secret. -
Goto app/Http/Kernel.php and add find an array 'middlewareGroups' inside it there is a key named 'api' inside it do an entry:
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
-
Add JWT Time To Live in
.envfile:JWT_TTL=525600 -
Add JWT_SHOW_BLACKLIST_EXCEPTION in
.envfile:JWT_SHOW_BLACKLIST_EXCEPTION=true -
Goto config/auth.php and add the below line of code in guard array
'api' => [ 'driver' => 'jwt', 'provider' => 'customer', ],And add below line of code in provider array
'customer' => [ 'driver' => 'eloquent', 'model' => Webkul\API\Models\Customer::class, ],
Contributors ✨
This project follows the all-contributors specification. Contributions of any kind welcome!
统计信息
- 总下载量: 145.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-19