Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道为什么这家工厂为所有变量提供相同的时间?
我得到的是:
这就是碳的工作方式…… $from->addDays(3)三天后会自己赚钱……
$from->addDays(3)
为避免这种情况,您可以使用make以下方法:
make
$to= Carbon::make($from)->addDays(rand(1,7));
make如您所料,方法将复制变量。