diff --git a/src/Models/Wallet.php b/src/Models/Wallet.php index 51f32a853..9cec8c5a4 100644 --- a/src/Models/Wallet.php +++ b/src/Models/Wallet.php @@ -159,11 +159,6 @@ public function getCurrencyAttribute(): string return $this->meta['currency'] ?? Str::upper($this->slug); } - protected function initializeMorphOneWallet(): void - { - $this->uuid ??= app(UuidFactoryServiceInterface::class)->uuid4(); - } - /** * returns all the receiving transfers to this wallet. * @@ -173,4 +168,9 @@ public function receivedTransfers(): HasMany { return $this->hasMany(config('wallet.transfer.model', Transfer::class), 'to_id'); } + + protected function initializeMorphOneWallet(): void + { + $this->uuid ??= app(UuidFactoryServiceInterface::class)->uuid4(); + } }