lundi 22 octobre 2018

Laravel 5 nested or and clause within another and clause

I want to run this query but with laravel query builder I'm not getting the exactly results using orWhere and where clause

SELECT * FROM lectures WHERE school=6 AND ( (period=3 AND class_section=3) OR (period=4 AND teacher=17) )

so how can I do it with laravel query builder can anyone help me out?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2yTQy8W
via IFTTT

Aucun commentaire:

Enregistrer un commentaire