On the Laravel News site there’s a new post sharing information about an upcoming upgrade for the framework’s date handling. In Laravel 5.8, there’s plans to update the Carbon library to v2.
Thanks to Carbon maintainer @kylekatarnls you will be able to use Carbon 1.0 or Carbon 2.0 staring in Laravel 5.8. The update includes the ability to use Carbon immutable and even make your application use CarbonImmutable as the default.
[…] According to the laravel/framework pull request you can choose which class you want for dates “such CarbonImmutable, Chronos or simply DateTime.”
For those that want to transition to using some of the features Carbon v2 provides, they’ve linked to an upgrade guide and some information about how localization will change as a re result of the upgrade.Google+