Carbon 1 is deprecated, see how to migrate to Carbon 2.https://carbon.nesbot.com/docs/#api-carbon-2You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. code example
Example: Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
#Add following package in composer.json
{
"require": {
"nesbot/carbon": "2.42.0 as 1.26.3",
"kylekatarnls/laravel-carbon-2": "^1.0.0"
}
}
#Then
composer update