© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
1 reply
Jerome V

How to pass data from cache to widget table?

I have this data from cache

$dashboardData = new DashboardData();
$data = $dashboardData->retrieve();

 $todayData = $data->get('most_sold_series');
$dashboardData = new DashboardData();
$data = $dashboardData->retrieve();

 $todayData = $data->get('most_sold_series');



how to pass the in the query? or should I change the whole structure?

  public function table(Table $table): Table
    {
        return $table
         ->query(
                 // ...
             )
         ->columns([
                // ...
        ]);
}
  public function table(Table $table): Table
    {
        return $table
         ->query(
                 // ...
             )
         ->columns([
                // ...
        ]);
}
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

Pass data to widget
FilamentFFilament / ❓┊help
3y ago
Pass data to widget from custom page
FilamentFFilament / ❓┊help
2y ago
pass data to widget from custom page
FilamentFFilament / ❓┊help
3y ago
How to get filtered table data from widget class?
FilamentFFilament / ❓┊help
2y ago