list AccessiblePanels?

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

Did you find this page helpful?