This method is published as offical example
->where(\"price < $minimumPrice OR price > $maximumPrice\") is such method safe?
want to write it as ->where
Try this:
$query->where('(price < ?', $minPrice) ->orWhere('price > ?)', $maxPrice) ->where('some = ?', $some_other_variable);
will result: where ((price < $minPrice) OR (price > $maxPrice)) AND (some = $some_other_variable)
where ((price < $minPrice) OR (price > $maxPrice)) AND (some = $some_other_variable)
Note the double (( )) in OR part