diff --git a/src/Query.php b/src/Query.php index d911f33..41998dd 100755 --- a/src/Query.php +++ b/src/Query.php @@ -795,7 +795,7 @@ protected function getResult($scroll_id) } else { - $result = Cache::driver($this->cacheDriver)->get($this->getCacheKey()); + $result = app("cache")->driver($this->cacheDriver)->get($this->getCacheKey()); if (is_null($result)) { @@ -830,7 +830,7 @@ protected function getLiveResult($scroll_id = NULL) } if (!is_null($this->cacheMinutes)) { - Cache::driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes); + app("cache")->driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes); } return $result;