interestCircle = $interestCircle; $this->interestCircleMessage = $interestCircleMessage; $this->interestCircleMessageComment = $interestCircleMessageComment; } /** * 提问列表 */ public function lists($request) { $perPage = isset($request['per_page']) ? $request['per_page'] : 20; $where[] = ['circle_id', $request['id']]; return $this->interestCircleMessage ->where($where) ->orderBy('is_recommend', 'desc') ->orderBy('id', 'desc') ->paginate($perPage); } }