$gno =head::select('point')->where('DATE', '>', Carbon::now()->subDays(7))-> orderBy('DATE','desc')->get();
return $gno;
Above code returns past seven days record from point column and i counted this using Below code
$gcs=$gno->count();
$gccount=explode(', ', $gcs);
return $gccount;
Its returns ["36"] count as seven days Records but I Expected : I want To store each date record count as array Example like ["5","15","20","12","4","2","4"] count as starting from today i think this will done by use loops But i dont know hoe to fix it??Thanks