cacheKey, function () { return Audition::with(['scoringGuide.subscores'])->get()->keyBy('id'); }); } public function getAudition($id) { return $this->getAuditions()->firstWhere('id',$id); } public function refreshCache() { Cache::forget($this->cacheKey); $this->getAuditions(); } }