Skip to content

Commit fd6d007

Browse files
authored
Merge pull request #270 from anderson-comvex/master
Fix model connection for SQLite tests
2 parents 9387aae + 78679d5 commit fd6d007

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)