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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -