Register a dashboard Filament widget
Capell Admin dashboards are built from Filament widgets: product status, content activity, editor work queues, extension health, and marketing operations. Package developers register widgets in code. Admins choose which registered widgets appear from Customize your dashboard.
Build a dashboard widget when a package needs its own table, chart, health panel, calendar, or actions on a dashboard. For a small count, status, or link, register an overview stat instead.
- Create a Filament widget that implements
Capell\Admin\Contracts\CapellFilamentWidgetContract, uses theGatedByRoleAndSettingsconcern, and sets a package-prefixed settings key such asvendor_package.status. - Register it from the package service provider with
CapellAdmin::registerDashboardFilamentWidget(...)against aDashboardEnumbucket, or through an admin bridge. - Optionally tag a
DashboardSettingsContributorto set the widget’s label, group, and description in dashboard settings.
Registration makes the widget available to a dashboard bucket. The widget renders only when canView() passes and its settings key is enabled.
The full API — dashboard buckets, built-in widgets, overview stats, settings sync, and ordering — lives in the canonical package reference:
Dashboard Widgets: Programmatic API
Related Tasks
Section titled “Related Tasks”| Task | Read |
|---|---|
| Choose which widgets appear and their order | Customize your dashboard |
| Add widgets to resource or page surfaces | Admin extensions |
| Add a frontend Layout Builder widget | Frontend widget registration |