Ikechi Michael
1 min readDec 2, 2019

--

Hi Sanjay.

You could specify a format for a single filter like `date_filter=<from>:<to>` if you need to get handle both at once.

Or rely on eloquent’s query nesting, such that `from=` evaluates to `->where(…, “>”, $value)`, and `to=` evaluates to `->where(…, “<”, $value)`. Eloquent should take care of building the query for you, depending on which query filters are supplied.

--

--

Ikechi Michael
Ikechi Michael

Written by Ikechi Michael

I’ve learned I don’t know anything. I've also learned that people will pay for what I know. Maybe that's why they never pay.

No responses yet