diff --git a/src/HasWallet.php b/src/HasWallet.php index 6ff7095..7bcf9d3 100644 --- a/src/HasWallet.php +++ b/src/HasWallet.php @@ -47,7 +47,7 @@ public function canWithdraw($amount) public function deposit($amount, $type = 'deposit', $meta = []) { $this->wallet->balance += $amount; - $this->save(); + $this->wallet->save(); $this->wallet->transactions() ->create([ @@ -72,7 +72,7 @@ public function withdraw($amount, $type = 'withdraw', $meta = [], $shouldAccept if ($accepted) { $this->wallet->balance += $amount; - $this->save(); + $this->wallet->save(); } $this->wallet->transactions()