FilamentF
Filamentβ€’3y agoβ€’
12 replies
cwbmuller

Discover panel widgets without adding to primary dashboard page

I am trying to discover a number of components (that are used on custom pages) in a panel.

However, if I use
discoverWidgets
they are automatically registered to the landing dashboard page no matter what I set in the
->widgets()
or in the
getHeaderWidgets()
of the main dashboard.

If I don't add the parent path of panel widgets to the
discoverWidgets
then the other pages cannot find the widget components.

I've tried to access the
discoverComponents()
method directly to register the widgets, but it is a protected. Please help πŸ™
Was this page helpful?