Skip to content

Commit

Permalink
Fix model connection for sqlite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-comvex committed Jul 12, 2019
1 parent 9387aae commit 78679d5
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 78679d5

Please sign in to comment.