We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 583a60b commit 85238a9Copy full SHA for 85238a9
src/LaravelMetrics.php
@@ -60,7 +60,7 @@ public function by(string $period, int $count = 0): self
60
{
61
$period = strtolower($period);
62
63
- if (!in_array($period, [self::DAY, self::MONTH, self::YEAR])) {
+ if (!in_array($period, [self::DAY, self::WEEK, self::MONTH, self::YEAR])) {
64
throw new InvalidPeriodException();
65
}
66
0 commit comments