Mais
Laravel 4 Eloquent Query Using WHERE with OR AND OR?
Como dizer AQUI (a = 1 OU b =1 ) E (c = 1 OU d = 1)
Para consultas mais complicadas, devo usar o SQL bruto?
251
3
Faça uso de Agrupamento de Parâmetros (Laravel 4.2). Para seu exemplo, it'seria algo parecido com isto:
Se você quiser usar parâmetros para a,b,c,d em Laravel 4
Incase you're loopinging the OR conditions, you don't need the second $query->where from the other posts (actually I don't think you need in general, you can just use or Where in the nested where if easier)