We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6355b commit a076a45Copy full SHA for a076a45
src/Models/Transfer.php
@@ -89,11 +89,11 @@ public function to(): MorphTo
89
90
public function deposit(): BelongsTo
91
{
92
- return $this->belongsTo(Transaction::class, 'deposit_id');
+ return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'deposit_id');
93
}
94
95
public function withdraw(): BelongsTo
96
97
- return $this->belongsTo(Transaction::class, 'withdraw_id');
+ return $this->belongsTo(config('wallet.transaction.model', Transaction::class), 'withdraw_id');
98
99
0 commit comments