Skip to main content
You are currently viewing the documentation for Filament 4.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.
Before proceeding, make sure filament/widgets is installed in your project. You can check by running:
composer show filament/widgets
If it’s not installed, consult the installation guide and configure the individual components according to the instructions.

Creating a widget

Use the make:filament-widget command to generate a new widget. For details on customization and usage, see the widgets section.

Adding the widget

Since widgets are Livewire components, you can easily render a widget in any Blade view using the @livewire directive:
<div>
    @livewire(\App\Livewire\Dashboard\PostsChart::class)

If you’re using a table widget, make sure to install filament/tables as well.
Refer to the installation guide and follow the steps to configure the individual components properly.

Sponsored by