Widget Configuration
CommunityConfigure Filament's widget polling interval and lazy-loading default once, globally, without editing every widget class by hand — while never touching a widget that already customizes either property itself.
Author:
Jefferson Gonçalves
Package health
BetaAutomated checks of this plugin's Composer package
15 checks
- Passed: GitHub Actions pinned to SHA
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Passed: Dependabot or Renovate configured
- Passed: Dependency update cooldown configured
- Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Passed: Commit and release recency — Active: last commit 0 days ago; last release 0 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Passed:
Current Laravel version supported
—
Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
—
Constraint
^8.2supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Why this plugin exists
- How the precedence rule works
- Compatibility
- Installation
- Usage
- Testing
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License

Configure Filament's widget polling interval and lazy-loading default once, globally, without editing every widget class by hand — while never touching a widget that already customizes either property itself.
#Why this plugin exists
Filament hardcodes a default polling interval on every polling-capable widget (protected ?string $pollingInterval = '5s';) with no built-in way to change that default across an entire application. A PR adding a global Widget::configureUsing() hook for this was closed by the Filament maintainer, danharrin, because baking a global configureUsing() callback into core would silently override any widget's own customized $pollingInterval, with no clean way to preserve precedence.
This plugin solves the same problem from outside core, as an opt-in third-party plugin, with a precedence rule that never overrides a widget that has customized the behavior itself — the exact guarantee the upstream PR couldn't offer.
In a large project, changing the default polling interval or lazy-loading behavior otherwise means opening every single widget class by hand. This plugin lets you set both once, in config or in AppServiceProvider, and every widget that hasn't customized its own behavior inherits the new default automatically.
#How the precedence rule works
Before overriding a property, the plugin checks — via ReflectionProperty::getDeclaringClass() — whether that property still comes from Filament's own base class/trait (Filament\Widgets\*, Filament\Support\*). If it does, it's safe to override. If a widget subclass has redeclared the property itself, its declaring class is that subclass, and the plugin leaves it untouched.
On Filament 5, $isLazy (CanBeLazy) is still a static property, so it's overridden once, at boot time, on Filament's base Widget class — every subclass that hasn't redeclared it inherits the new default for free. $pollingInterval (CanPoll), however, is a non-static instance property, so it can't be pre-set for an entire class hierarchy; instead, the plugin registers a Livewire ComponentHook that applies the resolved default to each widget instance individually, on mount/hydrate, using the same declaring-class check per instance.
#Compatibility
| Branch | Filament |
|---|---|
| 1.x | 3.x |
| 2.x | 4.x |
| 3.x | 5.x |
#Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-widget-configuration:"^3.0"
Optionally publish the config file:
php artisan vendor:publish --tag=filament-widget-configuration-config
#Usage
By default the plugin auto-applies on every request using config/filament-widget-configuration.php — no panel wiring required.
return [
'polling_interval' => env('FILAMENT_WIDGET_CONFIGURATION_POLLING_INTERVAL', '5s'),
'lazy' => env('FILAMENT_WIDGET_CONFIGURATION_LAZY', true),
];
Set polling_interval to null to disable polling by default across the app.
If you prefer to configure it in code, use WidgetConfigurationPlugin fluently — e.g. from AppServiceProvider::boot(), registered on your panel:
use JeffersonGoncalves\Filament\WidgetConfiguration\WidgetConfigurationPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
WidgetConfigurationPlugin::make()
->pollingInterval('30s')
->lazy(false)
);
}
Fluent values always win over the config file. Either way, a widget that already sets its own $pollingInterval or $isLazy keeps its own value.
#Testing
composer test
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
I'm a Full Stack PHP Developer from Assis, SP, Brazil with over 18 years of hands-on experience building robust platforms, managing server infrastructures, and crafting scalable solutions for businesses of all sizes.
My passion lives in the open source world — I actively maintain 20+ Filament plugins and a growing collection of Laravel packages used by thousands of developers worldwide. I believe great software should be accessible to everyone.
From the same author
Scanner Guard
Filament UI for jeffersongoncalves/laravel-scanner-guard: list, filter and unban vulnerability-scanner IPs directly from your admin panel. This plugin ships a read-only Resource over the scanner_guard_bans table, an active/expired filter, and unban / bulk unban actions.
Author:
Jefferson Gonçalves
Short URL
A complete Filament v5 admin layer for jeffersongoncalves/laravel-short-url — the headless core package that owns the models, migrations, redirect pipeline, tracking and every business rule. This package duplicates none of that: it's the presentation layer (Resources, Pages and Filament components) built on top of the core's Facade and contracts.
Author:
Jefferson Gonçalves
TeamKit v5
Teamkit is a robust starter kit, designed to accelerate the development of modern web applications with a ready-to-use multi-panel structure.
Author:
Jefferson Gonçalves
Ban
Ban and unban any Eloquent model directly from your Filament panel. This package wraps cybercog/laravel-ban and ships ready-to-use actions, bulk actions, an icon column and a status filter for your Filament resources and tables. Inspired by cybercog/laravel-nova-ban.
Author:
Jefferson Gonçalves
Featured Plugins
A selection of plugins curated by the Filament team
Blueprint
Filament Blueprint is a premium Laravel Boost extension that helps AI agents produce accurate, detailed implementation plans and security reports for Filament apps.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Compact Theme
A theme that makes data-heavy panels easier to scan by fitting more useful information on each screen.
Filament