Skip to content

Commit 8e760a2

Browse files
committed
refactor: update extra widgets description and integrate admin.extra_widgets in Dashboard
1 parent a61fbf4 commit 8e760a2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

config/inspirecms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
],
252252

253253
'extra_widgets' => [
254-
// Extra widgets to be added to the CMS
254+
// Extra widgets to be added to the CMS Dashboard
255255
],
256256
],
257257

src/Filament/Pages/Dashboard.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Filament\Pages\Page;
66
use Illuminate\Contracts\Support\Htmlable;
77
use SolutionForest\InspireCms\Filament\Widgets;
8+
use SolutionForest\InspireCms\InspireCmsConfig;
89

910
class Dashboard extends Page
1011
{
@@ -43,6 +44,7 @@ protected function getHeaderWidgets(): array
4344
Widgets\CmsInfoWidget::class,
4445
Widgets\PageActivity::class,
4546
Widgets\UserActivity::class,
47+
...InspireCmsConfig::get('admin.extra_widgets', []),
4648
];
4749
}
4850

0 commit comments

Comments
 (0)