where('deleted_at', 0); } /** * 查询当前用户拥有的笔记 * * @param int $noteUserId * @param int $id * @return self|null */ public static function findOwnedNote(int $noteUserId, int $id): ?self { return self::buildUserQuery($noteUserId) ->where('id', $id) ->find(); } }