Skip to content

Commit

Permalink
Merge pull request #786 from justinkekeocha/patch-13
Browse files Browse the repository at this point in the history
docs: accessing float amount
  • Loading branch information
rez1dent3 authored Oct 6, 2023
2 parents 8fcb209 + 8c4ae9f commit 3f89f44
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,10 @@ $user->depositFloat(1.37);
$user->balance; // 237
$user->balanceFloat; // 2.37
```
You can get the float amount by accessing the `amountFloat` attribute on the transaction model

```php
$transaction->amount; // 137
$transaction->amountFloat; // 1.37
```

0 comments on commit 3f89f44

Please sign in to comment.