From 9af21f4a457fa6a56d7b54e9a2fbd37c06b073e1 Mon Sep 17 00:00:00 2001 From: Bastian Schur Date: Sat, 28 Apr 2018 09:01:25 +0200 Subject: [PATCH] Multiple Database Connections: Extension I changed the connection name to the database name. This would be more flexible if a tenant system use for every tenant the same connection name and only changed the database in the connection. This change has no disadvantages compared to the previous variant --- src/Traits/CachePrefixing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }