定制 sapioweb/crudhelper 二次开发

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

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

sapioweb/crudhelper

Composer 安装命令:

composer require sapioweb/crudhelper

包简介

Helper provider to assist in general crud functions of a restful controller

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

Include into your config/app.php, Sapioweb\CrudHelper\CrudHelperServiceProvider::class,

Use the helper in any controller you plan to use it in, use Sapioweb\CrudHelper\CrudyController as CrudHelper;

Usage

use Sapioweb\CrudHelper\CrudyController as CrudHelper;

dd(CrudHelper::index());

Available Methods

Grab all data for a given resource

CrudHelper::index($model, $relations = null)

Stores you data for a resource

CrudHelper::store($model, $createData)

Show a single resource

CrudHelper::show($model, $field = 'id', $id, $relations = null)

Preform a where query on relationships

CrudHelper::relationshipQuery($model, $relationships, $relationField = null, $relationshipQuery = null)

Create or update a resource

CrudHelper::createOrUpdate($model, $field, $id, $inputData)

Destroy a resource

CrudHelper::destroy($model, $field = 'id', $id)

Turn a regular string into a slug string

CrudHelper::slugify($text)

License

This software is open-sourced software licensed under the MIT license. For questions please email andreas@sapioweb.com or info@sapioweb.com or visit Sapioweb.com to learn more and get in contact

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固