Skip to content

Commit

Permalink
Update Transfer Model #858
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jan 23, 2024
1 parent 2f6355b commit a076a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit a076a45

Please sign in to comment.