F
Filamentβ€’7mo ago
toeknee

list AccessiblePanels?

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