Carbon 处理某日是周几

1$day = (new Carbon($timestamp))->dayOfWeek; $timestamp 可以使时间戳也可以是日期时间格式。

编程