定制 betalabs/engine-api-handler 二次开发

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

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

betalabs/engine-api-handler

最新稳定版本:v4.0.3

Composer 安装命令:

composer require betalabs/engine-api-handler

包简介

Package providing relation filtering abilities to API-handler

README 文档

README

This package allows the search and filtering of related tables data using Marcel Gwerder's API handler. It only requires that you extend the class AbstractIndexHandler, implementing the method buildQuery(), which must return Laravel's \Illuminate\Database\Eloquent\Builder object. Then, to return the query results, you must call the method execute() of that class.

For the correct functioning of the package, you must separate the related tables using "->" in the URL, instead of ".". You must also name the Eloquent methods of each related table using the exact same name of that table in the Database.

You also have to put the file apihandler.php inside the config folder of your laravel project.

Installation

Install the package via composer

$ composer require betalabs/engine-api-handler

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-28