定制 g3n1us/laravel-model-api 二次开发

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

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

g3n1us/laravel-model-api

Composer 安装命令:

composer require g3n1us/laravel-model-api

包简介

Provides a unified api to access model data using basic naming conventions

README 文档

README

A controller providing a logical url structure for accessing model data

Usage: modelname is the snake cased version of the model. If singular, will display either the first model or the one specified by id. If plural, a paginated list of items will be output. If html is specified, the __toString method will explicitly be called, returning any overloaded version in the model, usually custom html output.

$_GET parameters for plural form only:

paginate - 0 results in no pagination, default = 1

per_page = results per page, disables pagination, integer default is pagination default, 15

offset = offset, return results starting at this offset

limit - limit to return, disables pagination

pluck/property - pluck a value from the returned objects

$_GET parameters for singular form only:

html - returns the model's overloaded __toString method instead of the default JSON representation, also an URL parameter

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-06-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固