From 8c4ae9fbb68d27e9afdc3ab97d2ef41c83ecb8ff Mon Sep 17 00:00:00 2001 From: Kekeocha Justin Chetachukwu <39213342+justinkekeocha@users.noreply.github.com> Date: Fri, 6 Oct 2023 16:45:38 +0100 Subject: [PATCH] docs: accessing float amount Signed-off-by: Kekeocha Justin Chetachukwu <39213342+justinkekeocha@users.noreply.github.com> --- docs/basic-usage.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/basic-usage.md b/docs/basic-usage.md index 811b2de61..cd3a0c1ad 100644 --- a/docs/basic-usage.md +++ b/docs/basic-usage.md @@ -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 +``` +