Post

Carbon is mutable by default. If you do $date->addHours(2), you've also mutated the original $date. Date::use(CarbonImmutable::class) in your service provider means you never have to think about this again.

0 reposts0 likes

No replies yet.