addProperty($start); $cache->addProperty($end); $cache->addProperty('account-report'); $cache->addProperty($accounts->pluck('id')->toArray()); if ($cache->has()) { return $cache->get(); } $accountTasker = app(AccountTaskerInterface::class); $accountReport = $accountTasker->getAccountReport($start, $end, $accounts); $result = view('reports.partials.accounts', compact('accountReport'))->render(); $cache->store($result); return $result; } }