📌  相关文章
📜  laravel carbon 获取日期名称 - PHP 代码示例

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

代码示例4
public function myMonthApts()
{
        return $this->appointments()
                        ->whereIn('status_id', [3,4])
                        ->whereYear('created_at', Carbon::now()->year)
                        ->whereMonth('created_at', Carbon::now()->month)
                        ->count();
}