Skip to content

Commit 78679d5

Browse files
Fix model connection for sqlite tests
1 parent 9387aae commit 78679d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/CachePrefixing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function getCachePrefix() : string
2828

2929
protected function getDatabaseName() : string
3030
{
31-
return $this->query->getConnection()->getDatabaseName();
31+
return $this->model->getConnection()->getDatabaseName();
3232
}
3333

3434
protected function getConnectionName() : string

0 commit comments

Comments
 (0)