Compare commits
2 Commits
1b2358b5a9
...
50f6b95192
Author | SHA1 | Date | |
---|---|---|---|
50f6b95192 | |||
665cc7720c |
@ -15,7 +15,7 @@ class DomainController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Daily stats as shown on the about page
|
* Daily stats as shown on the about page
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Domain $o
|
||||||
* @return Collection
|
* @return Collection
|
||||||
*/
|
*/
|
||||||
public function api_daily_stats(Request $request): Collection
|
public function api_daily_stats(Request $request): Collection
|
||||||
|
@ -338,7 +338,7 @@
|
|||||||
'name'=>$key,
|
'name'=>$key,
|
||||||
'dashStyle'=>'ShortDot',
|
'dashStyle'=>'ShortDot',
|
||||||
'visible'=>$item->first()->show,
|
'visible'=>$item->first()->show,
|
||||||
'data'=>$item->map(function($item) { return ['x'=>\Carbon\Carbon::createFromFormat('Y-m-d',$item->date)->timestamp*1000,'y'=>$item->count]; })
|
'data'=>$item->map(function($item) { return ['x'=>\Carbon\Carbon::createFromFormat('Y-m-d',$item->date)->timestamp,'y'=>$item->count]; })
|
||||||
]; })
|
]; })
|
||||||
->values() !!}
|
->values() !!}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user