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