public static function perDay($days = 1, $date_format = "m-d")
    {
        $hits_per_day = [];

        for ($i = 1; $i <= $days; $i++) {
            $hits_count = self::interval(Carbon::now()->subDays($i), Carbon::now()->subDays($i - 1));

            $hits_per_day[Carbon::now()->subDays($i)->format($date_format)] = $hits_count;
        }

        return $hits_per_day;
    }
public static function perDay($days = 1, $date_format = "m-d")
    {
        $hits_per_day = [];

        for ($i = 1; $i <= $days; $i++) {
            $hits_count = self::interval(Carbon::now()->subDays($i), Carbon::now()->subDays($i - 1));

            $hits_per_day[Carbon::now()->subDays($i)->format($date_format)] = $hits_count;
        }

        return $hits_per_day;
    }
Returns an associative array. The keys are the date and the values
are the number of hits during that date. If no parameter is
provided the method returns the hits for the last day.

@param int $days
@param string $date_format
@return array