diff --git a/src/Traits/CachePrefixing.php b/src/Traits/CachePrefixing.php index 152c78e..d07133c 100644 --- a/src/Traits/CachePrefixing.php +++ b/src/Traits/CachePrefixing.php @@ -13,6 +13,6 @@ protected function getCachePrefix() : string protected function getDatabaseConnectionName() : string { - return $this->query->connection->getName(); + return $this->query->connection->getDatabaseName(); } }