Filter data
Note: These below filter parameters only work with DB::where("collection-name")->all() function.
Sort
Sort by DESC is default
You can sort by ASC from url as below
example.com/posts?sort=ASCLimit
Limit by 0 index is default
You can limit collection from url as below
example.com/posts?limit=4Only
only can retrieve the data with specific keys.
example.com/posts?only=title,author,categoryQuery examples
example.com/posts?limit=2Last updated
Was this helpful?