Basic Usage
Filters
Add Filterable
trait to your model to get filter functionalities.
Now add filter()
to your model eloquent query in the controller.
By default, it gives access to all filters available. here is the list of available filters. if you want to explicitly specify which filters to use in this call head to restrict filters section.
Sort
Sort Basics
Add Sortable
trait to your model to get sorts functionalities.
Now add sort()
to your eloquent query in the controller.
Now sort can be applied as instructed in apply sort.
Last updated