I think you need many to many relations. Can this part of the docs help you? http://laravel.com/docs/5.0/eloquent#many-to-many
Laravel 5 | User Groups, How can i make it
Hey Guys, first of all i want to say that I am new to laravel and just know the basics like routing, model, eloquent etc. Something like providers is unknown for me. I wanted to build groups with permissions so that i can grant access to the admin control panel to the group which got the permission for it(for example). But i dont know where i have to load the groups and where i have to put everthing. I already got 3 tables in my database(created with artisan via make:migration), one groups table, which is for basic stuff like group name, description and of course increments. the second one lists all permission. the third connects permissions and groups and give them a value(for example group id: 1, perm id: 1, value: true) well and now my problem is that i dont know how i can load these groups into my aplication and load the permissions for the groups.
I hope my english is understandable.
Please or to participate in this conversation.