F
Filamentβ€’4w ago
toeknee

list AccessiblePanels?

How can we get a list of the accessiblePanels that this user can access?
2 Replies
Dennis Koch
Dennis Kochβ€’4w ago
I guess it depends on your auth, but you could loop through all panels and test them via $user->canAccessPanel()
toeknee
toekneeβ€’4w ago
I just found Filament::getPanels(), so I will add a user function, it's so we can have a panel switcher πŸ™‚