Show today's data in adminstration panel

This commit is contained in:
Pig Fang 2019-05-07 14:06:26 +08:00
parent f590763993
commit a35e265e66

View File

@ -21,7 +21,7 @@ class AdminController extends Controller
{
$today = Carbon::today()->timestamp;
$xAxis = Collection::times(30, function ($number) use ($today) {
$xAxis = Collection::times(31, function ($number) use ($today) {
$time = Carbon::createFromTimestamp($today - (31 - $number) * 86400);
return $time->format('m-d');