© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
᲼Vitor

Panels with some identical resources

Hello,

I have a application with 3 different panels (admin, factory and storekeeper).

Basically:
Admin panel can access with the guard user and role admin;
Factory panel can acess with guard factory;
Storekeeper panel can acess with guard shop;

The admin can access all the resources;
The factory can access just products and sales resources, and there must be logic to search only for products related to the factory logged in.
Storekeeper mantain the factory logic, acessing just the sales and products related to the storekeeper logged in.

What would be the correct way to block these resources depending on the panel? Is there any way to have a variable in the resource (like $factoryCanAcess: bool), and inside each panel in discoverResources i check for the variable?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

<x-filament-panels::resources.relation-managers>
FilamentFFilament / ❓┊help
5mo ago
Using relationManager without panels and resources
FilamentFFilament / ❓┊help
8mo ago
Multiple panels with own folder for resources duplicates path?
FilamentFFilament / ❓┊help
3y ago
Reuse the same Resources in multiple panels
FilamentFFilament / ❓┊help
3y ago