Skip to content

Commit 762883e

Browse files
author
Babichev Maxim
authored
Update HasWallet.php
1 parent ce5a1cf commit 762883e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Traits/HasWallet.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ public function balance(): MorphMany
220220
* With static:
221221
* var_dump($user1->balance, $user2->balance); // 100 100
222222
* $user1->deposit(100);
223+
* var_dump($user1->balance); // 200
223224
* $user2->deposit(100);
224-
* var_dump($user1->balance, $user2->balance); // 200 300
225+
* var_dump($user2->balance); // 300
225226
*
226227
* @return int
227228
*/

0 commit comments

Comments
 (0)