Hiding a Page widget from Panel Dashboard #8743
Replies: 4 comments 3 replies
-
Could you check/share
on both PanelProviders? |
Beta Was this translation helpful? Give feedback.
-
Hmm, kinda hard to see what is going here. You could try to override the Admin Dashboard (if you haven't already / + i don't know if this is a wanted solution for you as well). in app/Filament/Admin /Pages create a Dashboard.php
|
Beta Was this translation helpful? Give feedback.
-
You can set the isDiscovered attribute to false on your widgets and only call the specific widgets on each panel.
|
Beta Was this translation helpful? Give feedback.
-
To Hide Widget on Dashboard, Update the getWidgets method to filter out the widget(s) you don’t want to display.
|
Beta Was this translation helpful? Give feedback.
-
I recently refactored by Filament application to create two panels, Admin and Dashboard. Users login and see Dashboard panel. Everything is working after the refactor, except the StatsOver widget that I created for a Page called, "Profit & Loss".
The widget is registered on the Profit & Loss page, so it loads there; however, the problem is the StatsOver widget also displays on the User Panel Dashboard. I've tried moving it out the default widget namespace, but throws an error, so I'm really stumped.
I've read the documentation, searched Google, watched YouTube videos, but I can't figure out how to remove the StatsOver widget from the User Panel Dashboard and ensure that the widget loads on the "Profit & Loss" Page.
I've disabled the default widgets in the UserPanelProvider.php
->widgets([ // ])
Any guidance is appreciated. I'm using Filament v3.0.62. Laravel 10.25, PHP 8.2.
Beta Was this translation helpful? Give feedback.
All reactions