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

rmznatly's avatar

Filament Bezhansalleh Shield Role Management

Hello.

I am trying to use the Bezhansalleh Shield plugin. I have 2 panels, Admin and App.

There is a tenant structure in the App panel.

I am trying to assign roles to tenants in the App from the Admin panel. For example, I want to make role definitions such as X tenant can manage A,B,CD resource views while Y tenant should only manage B and C resource views.

At the same time, these tenants can also assign roles to their own users. For example, user X1 of tenant X can only manage resource view A, while user X2 can manage all of them.

But the problem is that I can't manage this package common for all panels, it works separately for each panel. In Role Reource, only the views of that panel come, etc. There are problems.

Has anyone used such a structure before? Can you guide me with your experience?

Thank you very much.

0 likes
1 reply
rmznatly's avatar

I made a few changes to the getResourceEntitiesSchema function of HasShieldFormComponents.php.

Since this document is in the vendor, I think it will be more accurate to implement it in my own project using an override or Trait-like method. When there is any update, the root file will be intact. How can I do this?

Please or to participate in this conversation.