From a076a455e181c4f88b023e969de1f2e4aeae643b Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Tue, 23 Jan 2024 22:42:34 +0300 Subject: [PATCH] Update Transfer Model #858 --- src/Models/Transfer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/Transfer.php b/src/Models/Transfer.php index 721696d46..df4a29390 100644 --- a/src/Models/Transfer.php +++ b/src/Models/Transfer.php @@ -89,11 +89,11 @@ public function to(): MorphTo public function deposit(): BelongsTo { - return $this->belongsTo(Transaction::class, 'deposit_id'); + return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'deposit_id'); } public function withdraw(): BelongsTo { - return $this->belongsTo(Transaction::class, 'withdraw_id'); + return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'withdraw_id'); } }