Answer the question
In order to leave comments, you need to log in
How to translate a MySQL-like query into Laravel Eloquent?
SELECT * FROM `books` WHERE books.type = 'rare' AND books.band - $value < $result
$books= DB::table('books')
->where('type ','=', 'rare')
->whereRaw('band - $value < $result') // Syntax error
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question