afrasiyabhaider
2 months ago

How to check same set of permissions assigned to another role?

Posted 2 months ago by afrasiyabhaider

I am using spatie permission package and I want to make sure that two roles with different names must not have same permissions while creating a role e.g

Role A
 - Pemission 1
 - Permission 2
 - Permission 3

Role B
 - Pemission 1
 - Permission 2
 - Permission 3

If this happens system should not create 2nd role "Role B"

Can anyone please guide me?

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