© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
Wazza

Widget error $tableColumnSearches

Hi everyone,

Im having a issue thats driving me nuts...

Im trying to make a widget update depending on what I choose from the table filter but I keep getting this issue everytime I change the filter on the table

On my AnalyticsResource I have ExposesTableToWidgets

and also included the

    public static function getWidgets(): array
    {
        return [
            AnalyticStats::class,
        ];
    }
    public static function getWidgets(): array
    {
        return [
            AnalyticStats::class,
        ];
    }


on the AnalyticStats I have use InteractsWithPageTable;

looks like this

class AnalyticStats extends BaseWidget
{
    use InteractsWithPageTable;

    public ?Model $record = null;

    protected function getTablePage(): string
    {
        return ListAnalytics::class;
    }

    protected function getStats(): array
    {
        return [
            Stat::make('Total Analytics', $this->getPageTableQuery()->count()),
        ];
    }
}
class AnalyticStats extends BaseWidget
{
    use InteractsWithPageTable;

    public ?Model $record = null;

    protected function getTablePage(): string
    {
        return ListAnalytics::class;
    }

    protected function getStats(): array
    {
        return [
            Stat::make('Total Analytics', $this->getPageTableQuery()->count()),
        ];
    }
}


All im trying to do is filter the count depending on the filter between dates, Ive pretty much duplicated whats on the demo project.

Any help would be great..

Thanks in advance
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Widget
FilamentFFilament / ❓┊help
2y ago
widget
FilamentFFilament / ❓┊help
2y ago
Widget
FilamentFFilament / ❓┊help
2y ago
Widget
FilamentFFilament / ❓┊help
3y ago