SyntaxFix
Write A Post
Hire A Developer
Questions
YourModel::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); });