addProperty($start); $cache->addProperty($end); $cache->addProperty('category-report'); $cache->addProperty($accounts->pluck('id')->toArray()); if ($cache->has()) { return $cache->get(); } $categories = $helper->getCategoryReport($start, $end, $accounts); $result = view('reports.partials.categories', compact('categories'))->render(); $cache->store($result); return $result; } }