128 0 0 0
Last Updated : 2021-04-12 23:29:23
Some times you will need to create an eloquent where clause and inside that where you may need to add extra or where claused
Model::where(function ($query) use ($a,$b) {
$query->where('a', '=', $a)
->orWhere('b', '=', $b);
})
->where(function ($query) use ($c,$d) {
$query->where('c', '=', $c)
->orWhere('d', '=', $d);
});