title: Laravel RBAC (Role Based Access Control) Model Relationship
body: <p>I'm making my own role based access control implementation and need some help on a relationship question.</p>
  
  <p>I have a User, Group and a Permission model, there's a pivot table between User / Group and between Group / Permission. How would I most efficiently retrieve the Permission model through the User model?</p>
  
  <p>Thank you.</p>
  
  <p>Edit:</p>
  
  <p>Relationship is as follows;</p>
  
  <p>User belongsToMany Group
  Group belongsToMany User</p>
  
  <p>Group belongsToMany Permission
  Permission belongsToMany Group</p>