mercredi 30 janvier 2019

Laravel Eloquent - Get a record every hour

I have a table that stores statistics every 3 minutes with a cron job. I want to display a chart with this data but I want the chart to have an interval of 1 hour otherwise it looks ugly as hell and is too much resource demanding. The table has the created_at and updated_at columns.

How can I do this with eloquent?

Thanks for your help!



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2WwjOgM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire