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([
// ...
]);
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?