jvbalcita
4 months ago
442
2
Laravel

Separate roles and permissions for each application

Posted 4 months ago by jvbalcita

Just need helping hand if I'm doing the right thing or if there is a better approach for this in Laravel.

I have a system that will contain multiple applications and aside from the main system roles I will have another table of roles inside it.

Here's the sample overview

Main System
    -Roles
	-isAdmin
	-isMember
Application1
    -User Roles
        -isAdmin
        -isParent
        -isTeacher
        -isStudent
Application2
    -User Roles
        -isAdmin
        -isOfficial
        -isCaptain
	-isMember

Will I have problems in the future if I do this? or should I just centralize the roles for all the applications? Is there a better approach for this that is less complex?

Please sign in or create an account to participate in this conversation.