Problem with dashboard loading all the widgets even those not defined in the panel provider
Hello, I made a stats overview widget to display in the header of a custom page. Even though I haven't added it to the widgets() function in the Panel Provider it still loads it on the dashboard after the defined widgets.
How do I get rid of it? I only want to display it on the custom page I made.
Do i have to override the Dashboard page?
4 Replies
It’s probably because of
discoverWidgets()
just some lines before thatIf I comment out that line, dashboard is fine but custom page complains about not finding a view for the widget.
Makes sense. Hm. I don’t know another way than overriding the dashboard page then.
I don't remember this being an issue in v2 though
but i think i used them in resources not in custom pages