Skip to content

Commit

Permalink
Merge pull request #270 from anderson-comvex/master
Browse files Browse the repository at this point in the history
Fix model connection for SQLite tests
  • Loading branch information
mikebronner committed Jul 20, 2019
2 parents 9387aae + 78679d5 commit fd6d007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/CachePrefixing.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function getCachePrefix() : string

protected function getDatabaseName() : string
{
return $this->query->getConnection()->getDatabaseName();
return $this->model->getConnection()->getDatabaseName();
}

protected function getConnectionName() : string
Expand Down

0 comments on commit fd6d007

Please sign in to comment.