When I try to run the following query, it returns nothing:
Item::where(\DB::raw('date_field < NOW()'))->get()
The reason for this is, that is null is appended to the generated MySQL query like this:
SELECT * FROM items WHERE date_field < NOW() is null;
Why does the is null part get appended to the above query?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1VB8JGP
via IFTTT
Aucun commentaire:
Enregistrer un commentaire