在接口中我如何打印数据(例如:我要打印有哪几个分类?每个分类下有多少个话题)
public function index()
{
return $this->response->collection(Category::all(),new CategoryTransformer());
}
推荐文章: