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,
        ];
    }


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()),
        ];
    }
}


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
Was this page helpful?