I am working on a project, in which i have to track all the records which are added in last hour of current time.
I am able to do this by using following query,
select count(*) as cnt
from log
where date >= DATE_SUB(NOW(),INTERVAL 1 HOUR);
but not able to do the same in Laravel.
Please help me to sort out this issue.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire