In the Defining Models. User model has many Role, and Role has many User too. So you can get the role list of a user, or user list of a role by an example:

And, of course. You can do that through collection


Don't worry about N + 1 query problem in here. We resolve it for you. See Eager Loading for more details.


comments powered by Disqus