承接 mohammadabusultan/laravel-filter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mohammadabusultan/laravel-filter

Composer 安装命令:

composer require mohammadabusultan/laravel-filter

包简介

A Laravel package for adding filter functionality to models.

README 文档

README

A laravel package to filter via your models .

installation :

composer require mohammadabusultan/laravel-filter

Usage :

  • use Filterable trait in your model
  • Define $filters array property in your model to select which columns to filter in

Example :

use Mohammadabusultan\LaravelFilter\Filterable;

class User extends Model {

  use Filterable ;
  protected $filters = ['name' => 'like', 'status' => '=', 'posts.title' => 'like'];
  
  public function posts(){
    return $this->hasMany(Post::class);
  }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-04