{"repo":"lacodix/laravel-model-filter","free":true,"listed":false,"github":"https://github.com/lacodix/laravel-model-filter","clone":"git clone https://github.com/lacodix/laravel-model-filter.git","description":"Offers an simple way to filter and search eloquent models by array parameters and query strings","language":"PHP","stars":175,"topics":["eloquent","filter","laravel","laravel-package","model"],"license":"MIT","category":"databases-storage","readme_excerpt":"laravel-model-filter This package allows you to filter, search and sort models while fetching from database with ease. It contains additional functionality to use query strings to filter, search and sort. With this package you can easily filter, search and sort your Eloquent models. It supports various filter types like strings, dates, numbers, and enums out of the box. You can also create complex custom filters to handle any specific database logic. Additionally you can use the visualisation functionality of filters. Documentation You can find the entire documentation for this package on our documentation site See our Upgrade Guide for information on how to upgrade from older versions. Installation Basic Usage Filter Create your first filter Filters can be applied directly to models, but they can also be easily applied to relations and nested relations using the RunsOnRelation trait. This automatically wraps the filter logic in a whereHas closure and correctly qualifies the field names using the related table. Search Visualize All filters have a blade template that can visualize the filter with one or multiple input fields. To visualize all filters of a dedicated model you can use a blade component: Grouping Sometimes you don't need all of the filters for all parts of a web application. Maybe there shall be different filters be available to the backend as in the frontend, or different user types shall be able to use different filters. For such cases this package offers filte","default_branch":null,"files":null,"tree":[],"storefront":"/r/lacodix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lacodix/laravel-model-filter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}