Back

If you haven't bumped into this yet, here is some unexpected behavior with times in Carbon, and how I avoid this with explicit tests.

masteringlaravel.io/daily/2024-08-05-some-unexpected-behavior-with-times-in-carbon

1

161

  • No matching results...
  • Searching...

/ 1000

I also like to use CarbonImmutable where possible too. I had a few bugs in previous apps that were caused by me performing a modifier like addDay() onto a date not realising it changed the existing instance.

240