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 5a29f46 commit 8dadd2fCopy full SHA for 8dadd2f
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, !is_null($this->id))
+ ->getWallet($this, false)
85
->hasMany(config('wallet.transaction.model', Transaction::class), 'wallet_id')
86
;
87
}
0 commit comments