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 3a9c2e8 commit 5a29f46Copy full SHA for 5a29f46
src/Traits/HasWallet.php
@@ -81,7 +81,7 @@ public function getBalanceIntAttribute(): int
81
public function walletTransactions(): HasMany
82
{
83
return app(CastServiceInterface::class)
84
- ->getWallet($this)
+ ->getWallet($this, !is_null($this->id))
85
->hasMany(config('wallet.transaction.model', Transaction::class), 'wallet_id')
86
;
87
}
0 commit comments