dingo item () 的第三个参数
return $this->item($user, new UserTransformer, ['key' => 'user']);
item 的第三个参数教程中说是资源建 , 在实际使用中的场景是什么 , 对这个资源键不是很理解.
推荐文章: