📜  Carbon 1 已弃用,请参阅如何迁移到 Carbon 2. https:carbon.nesbot.com docs #api-carbon-2 您可以运行 '.供应商 bin upgrade-carbon' 以获得更新 carbon 和其他依赖它的框架和库的帮助. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:59.783000             🧑  作者: Mango

代码示例1
#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