php - How can I do a where AND where in Laravel Eloquent? -
this have:
$query->orderby('id', 'desc') ->where('totalcolorless', '!=', 0) // removes of these... ->where('totalresidual', '!=', 0) // ...and of these ->get();
how can make removes rows fulfill both criteria @ same time?
try "orwhere":
[...] ->where('totalcolorless', '!=', 0) ->orwhere('totalresidual', '!=', 0) [...]
Comments
Post a Comment