countByDays($request, Concour::class); } /** * Get the ranges available for the metric. * * @return array */ public function ranges() { return [ 7 => __('7 Jours'), 14 => __('14 Jours'), 30 => __('30 Jours'), 60 => __('60 Jours'), 90 => __('90 Jours'), ]; } /** * Determine the amount of time the results of the metric should be cached. * * @return \DateTimeInterface|\DateInterval|float|int|null */ public function cacheFor() { // return now()->addMinutes(5); } /** * Get the URI key for the metric. * * @return string */ public function uriKey() { return 'concours-per-day'; } public function name() { return 'Tendances des Concours'; } }