Skip to content
Advertisement

How do where one to three values ​come from the combo box in Eloquent Laravel?

I have a filter with three check boxes, each of which has a Value “question”, “partnership”, “complaint”. but when I select two data from the check box (ex.complaint & question) sent to the controller and I use the orWhere function, the data is error (all appearing). Is what I’m doing wrong?

and HTML

Thanks for advance

Advertisement

Answer

You need to merge all orWhere together:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement