Cannot use popularThisWeek() when using Date::use(CarbonImmutable::class) #81
Unanswered
agustinzamar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In AppServiceProvider I have configured to use immutable dates with
Date::use(CarbonImmutable::class)and I get the following errorApp\Models\Product::scopePopularBetween(): Argument #2 ($from) must be of type Carbon\Carbon, Carbon\CarbonImmutable given
Beta Was this translation helpful? Give feedback.
All reactions