使用 dingo 中 collection 如何传递多个参数到 transformer 中呢?
我想请教一下
$Users = User::all();
$count = User::count();
//如何将$count 也传到UsersTransformer中
$this->response->collection($Users,new UsersTransformer);
推荐文章: