Download the PHP package j-dexx/eloquent-ransack without Composer
On this page you can find all versions of the php package j-dexx/eloquent-ransack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eloquent-ransack
Inspired by the ransack gem eloquent ransack's goal is to provide a simplistic filtering method on eloquent models.
Usage
The Ransackable trait provides a ransack scope that you pass an array of input to. All filters should be of the form column_name_predicate where predicate is one of the options listed in the table below.
Available Filtering Types
| predicate | example | sql |
|---|---|---|
| eq | name_eq | where "name" = ? |
| not_eq | name_not_eq | where "name" != ? |
| cont | name_cont | where "name" LIKE ? |
| in | category_id_in | where "category_id" in (?) |
| not_in | category_id_not_in | where "category_id" not in (?) |
| lt | date_lt | where "date" < ? |
| lte | date_lte | where "date" <= ? |
| gt | date_gt | where "date" > ? |
| gte | date_gte | where "date" >= ? |
Example
Eloquent Model
Form
Controller
All versions of eloquent-ransack with dependencies
PHP Build Version
Package Version
The package j-dexx/eloquent-ransack contains the following files
Loading the files please wait ...