用户与角色的一对多关系是怎么实现的?
return $this->collection($user->roles, new RoleTransformer());
User model 下没有相应的方法实现..怎么就实现这功能的..
推荐文章: