定制 ubitcorp/laravel-filter 二次开发

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

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

ubitcorp/laravel-filter

Composer 安装命令:

composer require ubitcorp/laravel-filter

包简介

It provides a Eloquent query builder that can be used with trait on any model for Laravel project

README 文档

README

Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads

Laravel Filter

It provides a Eloquent Filter from request or an array. It can be used with trait on any model for Laravel project

Installation

Via Composer

composer require ubitcorp/laravel-filter

To change configuration file:

php artisan vendor:publish --provider="ubitcorp\Filter\ServiceProvider" 

Usage

This package provides the filter trait that can be included any model. After that the functions below can be used:

//In Project Model (example)
namespace App\Models;

use Illuminate\Database\Eloquent\Model; 
use ubitcorp\Filter\Traits\Filter; 

class Project extends Model
{
  use Filter;
  ...
}
//In a Controller
Project::with("customer")->filter()->paginate();

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固