Skip to content

Commit

Permalink
Merge pull request #785 from justinkekeocha/patch-12
Browse files Browse the repository at this point in the history
docs: changing wallet decimal_places
  • Loading branch information
rez1dent3 authored Oct 6, 2023
2 parents 3f89f44 + f38e8e5 commit e2e3bf3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,20 @@ class MyWallet extends WalletBase {
echo $user->wallet->helloWorld();
```
This same method above, can be used to extend the base `Transfer` and `Transaction` models and registering the extended models in the configuration file.
### Changing wallet decimal places

You can change the default wallet decimal places, in wallet config file. This can be useful when working with fractional numbers.

```php[config/wallet.php]
/**
* Base model 'wallet'.
*/
'wallet' => [
....
'creating' => [
'decimal_places' => 18,
],
....
],
```

0 comments on commit e2e3bf3

Please sign in to comment.