Simple where clauses take the format of
where[]=fieldname:operator:value
for example
?where[]=id:eq:1
would equate to an eloquent query of
model::where('id', '=', 1)
The operators allowed are
Can also use orWhere
orWhere[]=id:eq:1
Where In clauses take the form of
whereIn[]=fieldname:(comma separate list)
For example
whereIn[]=id:(1,2,3)
Can also use
Where Between clauses take the form of
whereBetween[]=fieldname:start:end
For example
whereBetween[]=age:18:45
Can also use