Answer the question
In order to leave comments, you need to log in
What's wrong with where?
code:
if ($request->post('min_price'))
$data->where('price','>=',$request->input('min-price'));
if ($request->input('max_price'))
$data->where('price','<=', $request->input('max-price'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question