i try to get results from table with multiple where and/or clauses.
My SQL statement is:
SELECT * FROM tbl WHERE m__Id = 46 AND t_Id = 2 AND (Cab = 2 OR
Also, if you have a variable,
CabRes::where('m_Id', 46) ->where('t_Id', 2) ->where(function($q) use ($variable){ $q->where('Cab', 2) ->orWhere('Cab', $variable); }) ->get();