File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class User extends Authenticatable
55
55
}
56
56
```
57
57
58
- ##### Basic operations
58
+ #### Basic operations
59
59
60
60
``` php
61
61
$user->increaseBalance(2575);
@@ -71,7 +71,7 @@ $user->modifyBalance(3037);
71
71
$user->balance; // 5
72
72
```
73
73
74
- ##### Reset balance
74
+ #### Reset balance
75
75
76
76
It's also possible to reset the balance and directly setting a new value.
77
77
@@ -81,23 +81,15 @@ $user->resetBalance(); // 0
81
81
$user->resetBalance(10); // 10
82
82
```
83
83
84
- ##### Check if model has balance
84
+ #### Check if model has balance
85
85
86
86
Check if there is a positive balance or a balance greater than that provided.
87
87
``` php
88
88
$user->hasBalance();
89
89
$user->hasBalance(2575);
90
90
```
91
91
92
- ##### Check if model has balance
93
-
94
- Check if there is a positive balance or a balance greater than that provided.
95
- ``` php
96
- $user->hasBalance();
97
- $user->hasBalance(2575);
98
- ```
99
-
100
- ##### Check if model has no balance
92
+ #### Check if model has no balance
101
93
102
94
Check if there is no more balance.
103
95
``` php
You can’t perform that action at this time.
0 commit comments