jeudi 28 juillet 2016

Use arithmetic operator in laravel query builder where statement

I have a table with two fields value of integer (up, down). I need to select all rows, where up is more then down. Trying this:

EloqModel::->where('up', '>', 'down')->get();

returns all rows



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2apYfK9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire