vCenterRepository->getModel(); } public function filter( array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'], bool $returnQuery = false ) { if ( $returnQuery || !empty($data['paginate']) ) { return $this->vCenterRepository ->filter($data, $relationships, $withCount, $select, $returnQuery); } return $this->rememberFilter( compact('data', 'relationships', 'withCount', 'select'), fn() => $this->vCenterRepository->filter($data, $relationships, $withCount, $select, $returnQuery) ); } public function findByName(string $name = '') { $cacheKey = CacheKey::build($this->getModuleName(), 'find-by-name', ['name' => $name]); return $this->cache->remember($cacheKey, function () use ($name) { return $this->vCenterRepository->findByName($name); }); } }