Carbon today() vs. now()Posted on: 2021-01-13 08:43:55
Carbon::now(). They are not synonyms. The former is equiv. to
This is important, especially in test environments. If you're thinking that
Carbon::today() is actually today... well I suppose it is, but in what timezone?
I had a test that was doing something calculated off of
Carbon::today()->subDays(1) and that is not equal to