I have five tables to setup relationship between 3 tables are: + users + roles + permissions
The relationship of users and roles are many to many through pivot table is "user_role"
The relationship of roles and permissions are also many to many through pivot table is "role_permission"
Now I want to display list users but I want bring their permissions on this list. How can I do that?
Name Email Role Permission
aaa [email protected] Moderator, Customer create-post, update-post, delete-post