Sounds like a multi tenant app. You can have a prefix or suffix for a company users role.
But do you have multi databases or just one. I suggest look over some of the multi tenant packages if this is what you are doing.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone,
I'm currently developing an application using Laravel and have encountered a challenge with implementing a two-tier role system. I'm using the laravel-permission package but am struggling to configure it to suit my specific needs. Here's a breakdown of the problem:
My application needs to support two distinct types of roles:
I'm able to use the teams feature in laravel-permission to handle company roles effectively. Each 'team' in this context represents a company, and I can assign roles and permissions within each company. However, the difficulty arises with the website roles. I need a way to manage these website-wide roles independently from the company-specific roles.
laravel-permission, which works well for that part.I'm looking for advice or suggestions on how to implement this two-tier role system effectively. Specifically, I need guidance on:
I appreciate any insights or advice you can provide. Thank you in advance for your help!
Please or to participate in this conversation.