J
J
Jedi2018-06-10 18:06:28
Laravel
Jedi, 2018-06-10 18:06:28

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'));

error: Illegal operator and value combination.
People, what's wrong?)
Is there something wrong with the data type?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question