Skip to content

Commit a076a45

Browse files
committed
Update Transfer Model #858
1 parent 2f6355b commit a076a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/Transfer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ public function to(): MorphTo
8989

9090
public function deposit(): BelongsTo
9191
{
92-
return $this->belongsTo(Transaction::class, 'deposit_id');
92+
return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'deposit_id');
9393
}
9494

9595
public function withdraw(): BelongsTo
9696
{
97-
return $this->belongsTo(Transaction::class, 'withdraw_id');
97+
return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'withdraw_id');
9898
}
9999
}

0 commit comments

Comments
 (0)