title: Get data on daily basis in laravel
body: <p>i have mysql table which is having earnings records with date. i want to get total earning  on daily ,weekly and monthly basis. </p>
  
  <p>I tried to get these records on basis of date but is confusing.</p>
  
  <p>i want to get these reports on daily , weekly and monthly basis.</p>