标签: laravel
情形:
//UserController.php function index(Request $request){ return User::with('someRelation')->paginate($request->limit); } function transformCollection(Collection $users){ //some logic }
问题“如何转换分页结果?”;