feed_id = $id; } /** * 查询表格数据 * * @param Grid\Model $model * @return LengthAwarePaginator */ public function get(Grid\Model $model) { $currentPage = $model->getCurrentPage(); $perPage = $model->getPerPage(); $data =FeedCommentModel::query() ->where(['feed_id'=>$this->feed_id]) // ->where($model->filter()) ->with(['user:id,name,avatar','to_user:id,name,avatar']) ->paginate(); return $data; return $model->makePaginator($res['MsgCnt'],$res['MsgList']); } }