diff --git a/src/Models/Wallet.php b/src/Models/Wallet.php index 77c76f739..5727d3a25 100644 --- a/src/Models/Wallet.php +++ b/src/Models/Wallet.php @@ -158,6 +158,11 @@ public function getCurrencyAttribute(): string return $this->meta['currency'] ?? Str::upper($this->slug); } + public function updateOrAddMeta(array $meta): array + { + return $this->meta = array_merge($this->meta ?? [], $meta); + } + protected function initializeMorphOneWallet(): void { $this->uuid = app(UuidFactoryServiceInterface::class)->uuid4();