定制 bagisto/legacy-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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 .env file: JWT_TTL=525600

  • Add JWT_SHOW_BLACKLIST_EXCEPTION in .env file: 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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-19