Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mreduar committed Mar 19, 2021
1 parent 4df98f1 commit 134e374
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class User extends Authenticatable
}
```

##### Basic operations
#### Basic operations

```php
$user->increaseBalance(2575);
Expand All @@ -71,7 +71,7 @@ $user->modifyBalance(3037);
$user->balance; // 5
```

##### Reset balance
#### Reset balance

It's also possible to reset the balance and directly setting a new value.

Expand All @@ -81,23 +81,15 @@ $user->resetBalance(); // 0
$user->resetBalance(10); // 10
```

##### Check if model has balance
#### Check if model has balance

Check if there is a positive balance or a balance greater than that provided.
```php
$user->hasBalance();
$user->hasBalance(2575);
```

##### Check if model has balance

Check if there is a positive balance or a balance greater than that provided.
```php
$user->hasBalance();
$user->hasBalance(2575);
```

##### Check if model has no balance
#### Check if model has no balance

Check if there is no more balance.
```php
Expand Down

0 comments on commit 134e374

Please sign in to comment.