How to get records weekly -monthly -yearly by timestamps?
I need to get some information from the database to show on seperate weekly, monthly and yearly graphs. Is there a helper or a built-in eloquent tool to get them filtered by those formats? Like pagination, click a button to go previous week etc.