Skip to content

Commit

Permalink
Fixing model observers integration
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPrigroup committed Oct 15, 2024
1 parent edeb667 commit 5766db4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Concerns/UsesCipherSweet.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ public function deleteBlindIndexes(): void
->where('indexable_id', $this->getKey())
->delete();
}

public function decryptRow(): void
{
$this->setRawAttributes(static::$cipherSweetEncryptedRow->setPermitEmpty(config('ciphersweet.permit_empty', false))->decryptRow($this->getAttributes()), true);
$this->setRawAttributes(static::$cipherSweetEncryptedRow->setPermitEmpty(config('ciphersweet.permit_empty', false))
->decryptRow($this->getAttributes()), false);
}


public function scopeWhereBlind(
Builder $query,
string $column,
Expand Down

0 comments on commit 5766db4

Please sign in to comment.