Separate panels

Hi how can I do separate panels with only some of users can access first panel and some others can access the second panel. Is it possible? I mean the best method to do it because I saw many methods but I want the best or the right way that Filament use.
Solution:
Yes the function canAccessPanel returns boolean, so as long as you define your own logic and return bool, you can.
Jump to solution
4 Replies
Vp
Vp4d ago
This is from docs
Since you have access to the current $panel, you can write conditional checks for separate panels. For example, only restricting access to the admin panel while allowing all users to access the other panels of your app:
abdullafahem
abdullafahemOP4d ago
Can I do it by roles?
Solution
Vp
Vp4d ago
Yes the function canAccessPanel returns boolean, so as long as you define your own logic and return bool, you can.
abdullafahem
abdullafahemOP4d ago
Ok thanks!

Did you find this page helpful?