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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire