different widgets on different dashboard
Hi
i'm confused about the utility of "multiple dashboard" feature from filament 3.2 . I don't understand what is the utility of creating "automatical" widgets on dashboard if there are all the same widgets on all dashboard. I didn't find how to assign a widget to a dashboard page .
I don't want widgets displayed on role, i want really "different pages "dashboard" with differents widgets on them
Thank you for your help and didn't find approriate anwers in previous posts / doc online
Solution:Jump to solution
Move the widgets out of the auto discovery paths and manually register them in the dashboard.
4 Replies
Just create a different dashboard class for each panel. https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-dashboard-page
yeah i did that, but how to assign some widget to one panel and others to an other panel ?
since they are all by default displayed on each panel ?
Solution
Move the widgets out of the auto discovery paths and manually register them in the dashboard.
ok : ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets')
get it
thank you