Skip to content

Commit 076f0a1

Browse files
committed
default withdrawable_balance added to HasWallet trait
1 parent b2053bf commit 076f0a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/Traits/HasWallet.php

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public function wallet()
1111
return $this->morphOne(Wallet::class, 'walletable')->withDefault(function ($wallet, $user) {
1212
return $user->wallet()->firstOrCreate([
1313
'balance' => 0,
14+
'withdrawable_balance' => 0,
1415
]);
1516
});
1617
}

0 commit comments

Comments
 (0)