We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a6824 commit decbd99Copy full SHA for decbd99
tests/Query/BuilderTest.php
@@ -564,7 +564,12 @@ function (Builder $builder) {
564
yield 'whereBetween CarbonPeriod' => [
565
[
566
'find' => [
567
- ['created_at' => ['$gte' => new UTCDateTime($period->start), '$lte' => new UTCDateTime($period->end)]],
+ [
568
+ 'created_at' => [
569
+ '$gte' => new UTCDateTime($period->getStartDate()),
570
+ '$lte' => new UTCDateTime($period->getEndDate()),
571
+ ],
572
573
[], // options
574
],
575
0 commit comments