samedi 19 août 2017

How to make and condition with or in laravel query

My query is as below

select * from user_register inner join locationdetail on locationdetail.userid = user_register.id inner join lifestyle on lifestyle.userid = user_register.id where lifestyle.drink in (2) and ( locationdetail.state_id in (4121) or locationdetail.country_id in (38))

In this query how to make bracket query in laravel



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

Aucun commentaire:

Enregistrer un commentaire