更新时间:2023-11-17 18:34:22
有内置的Carbon方法isPast,因此您可以使用:
isPast
There's built-in Carbon method isPast so you can use:
$league->date_start->isPast()
确定日期是否过去
Laravel Carbon查看日期是否过去