We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c30598 commit ef5949dCopy full SHA for ef5949d
1 file changed
src/Traits/HasWallet.php
@@ -54,9 +54,7 @@ public function getWalletBalanceByType(string $walletType): int|float
54
throw new InvalidWalletTypeException("Invalid wallet type '{$walletType}'.");
55
}
56
57
- $walletEnumType = WalletEnums::tryFrom($walletType);
58
-
59
- $wallet = $this->wallets()->type($walletEnumType)->first();
+ $wallet = $this->wallets()->where('type', $walletType)->first();
60
61
if (! $wallet) {
62
throw new WalletNotFoundException("Wallet of type '{$walletType}' not found.");
0 commit comments