Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jackFlick's avatar

Separate roles and permissions for each application

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?

0 likes
2 replies
jackFlick's avatar
jackFlick
OP
Best Answer
Level 11

We'll actually be doing that approach.

But should we just use the laravel-permission package and have a centralized roles for all applications and just manipulate the permissions?

Please or to participate in this conversation.