In Laravel (AND) OR (AND) Query
I will give you the short way how to do that. This will available after Larave 5.3. Checkout the below,
$data = Model::where([
['column_name_1', '>', '1'],
['column_name_2', '>', '1'],
])
->orWhere([
['column_name_1', '<', '1'],
['column_name_2', '<', '1'],
])
->get();