我用
$this->response->paginator($school, new SchoolTransformer());
转换我的数据
但结果并不好。
{
“0”:{
"id": 35,
"name": "北京东城大学",
"icon_url": "http://www.dicki.info/",
"area": "北京市 东城区",
"status": 1,
"count_users": 0
},
“meta”:{
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current_page": 1,
"total_pages": 1,
"links": []
}
} }
如何删除“0”和“meta”的东西?