Skip to content

Commit eee743a

Browse files
committed
2.0.4 | hotfix
1 parent 1fb3fd6 commit eee743a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Traits/Encryptable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function getDirtyEncrypted(): Collection
4949
public function refreshWithGlobalScopes(): self
5050
{
5151
$this->setRawAttributes(
52-
$this->useWritePdo()
52+
$this->where(
53+
$this->getKeyName(),
54+
$this->getKeyForSelectQuery()
55+
)
56+
->useWritePdo()
5357
->firstOrFail()
5458
->attributes
5559
);

0 commit comments

Comments
 (0)