Skip to content

Commit 8dadd2f

Browse files
keatliang2005rez1dent3
authored andcommitted
Fix based on suggested #517 (comment)
1 parent 5a29f46 commit 8dadd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasWallet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getBalanceIntAttribute(): int
8181
public function walletTransactions(): HasMany
8282
{
8383
return app(CastServiceInterface::class)
84-
->getWallet($this, !is_null($this->id))
84+
->getWallet($this, false)
8585
->hasMany(config('wallet.transaction.model', Transaction::class), 'wallet_id')
8686
;
8787
}

0 commit comments

Comments
 (0)