需要对分页数据进行transformer,但是不知道如何解决,下面是我的代码
$devis=DB::table('devis')->orderBy('category_id','DESC')->paginate(10);
return $this->respondWithCollection($devis,new DevisTransformer());
返回500
错误信息:"Type error: Argument 1 passed to AppHttpControllersApiController::respondWithCollection() must be an instance of IlluminateSupportCollection, instance of IlluminatePaginationLengthAwarePaginator given,