DEV Community

Rupadana
Rupadana

Posted on

Hide filamentphp default Widget

Introduction

Before continuing, make sure you have installed panel builder.

php artisan filament:install --panels
Enter fullscreen mode Exit fullscreen mode

Edit AdminPanelProvider

Edit file app/Providers/Filament/AdminPanelProvider.php

Here we found default widgets, you can remove it.

$panel
->widgets([
    Widgets\AccountWidget::class,
    Widgets\FilamentInfoWidget::class,
])
Enter fullscreen mode Exit fullscreen mode

Open /admin and widget is gone.

Top comments (0)