I believe \Illuminate\Support\Carbon just wraps Carbon\Carbon now for backwards compatibility - since the Carbon\Carbon package now implements the things (macroable) that the Laravel implementation was solving
@franciscocaldeira yes? If it was removed alot of apps would probably break. Does it matter that it's there? If you want it gone, you could try adding a pr to laravel 9
@Sinnbeck it matters if you're working on a large team that now has to just hope everyone remembers to use the correct one or risk bugs with function type declarations.
@DigDoug what kind of invalid reasoning is this? it is the same as saying you need to remember to use App\Models\User, instead of Illuminate\Foundation\Auth\User. use it or not 🤷♂️
@tykus and @Sinnbeck Hello again. It has been 2 years since my last reply.
now() in L11, uses the mentioned reference. It is still in the core of laravel.
@franciscocaldeira well, if you bothered to look into the source, you will see that Illuminate\Support\Carbon is no longer an empty wrapper for Carbon\Carbon (as it was whenever I wrote the original reply 5 years ago). Things change... roll with it. Or, just drop back in another 2 years with a follow-up.
It's actually better to use Carbon\Carbon because if you work with CarbonImmutable (which you always should, by default) and you make a mutable version using ->toMutable() it will create an instance of Carbon\Carbon.
Having some instances being one and others being another is a silly idea.