Why orwhere is not working in laravel 5?

Did the filter sample according to the model, make, city. doing so

Data is transferred into the variables tested, all OK. the table phones select all where cat_id is equal to 1, i.e., phones, displays everything where cat_id is equal to 1, in spite of orwhere
July 9th 19 at 13:04
1 answer
July 9th 19 at 13:06
You sure it works with no errors, like, orWhere, not orwhere. If You just made a mistake, let's see what a query is generated (using ->toSql() or Laravel Debugbar).
checked using toSql(), prints "select * from `products` where `product_cat_id` = ? or `product_city` = ?" why is values sign ? - stephany3 commented on July 9th 19 at 13:09
DD found why instead of a value sign? - emmy.Pfannerstill commented on July 9th 19 at 13:12

Find more questions by tags PHP