bagisto/legacy-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固