🤖 Auto commit for release 'develop' on 2025-05-29

This commit is contained in:
JC5
2025-05-29 19:58:55 +02:00
parent 2e69e09808
commit 36ab188ad1
55 changed files with 240 additions and 198 deletions

View File

@@ -40,15 +40,15 @@ class TransactionJournalMeta extends Model
protected $fillable = ['transaction_journal_id', 'name', 'data', 'hash'];
protected $table = 'journal_meta';
/**
* @param mixed $value
*
* @return mixed
*/
protected function data(): Attribute
{
return Attribute::make(get: fn($value) => json_decode((string) $value, false), set: function ($value) {
$data = json_encode($value);
return Attribute::make(get: fn ($value) => json_decode((string) $value, false), set: function ($value) {
$data = json_encode($value);
return ['data' => $data, 'hash' => hash('sha256', (string) $data)];
});
}
@@ -64,6 +64,7 @@ class TransactionJournalMeta extends Model
get: static fn ($value) => (int) $value,
);
}
protected function casts(): array
{
return [