parent::where(function ($query){ $query->where(["user_id" => 1, "notice_type" => 0])->whereOr(["notice_type" => 1]); })->count()