mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 11:24:03 +00:00
wip
This commit is contained in:
parent
efe697b051
commit
5b7e3e118a
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -314,6 +314,20 @@ public function rate(): float
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Setting the default currency
|
||||||
|
|
||||||
|
You can set the [default currency](#default-currency) using the `setDefault()` method:
|
||||||
|
```php
|
||||||
|
currencies()->setDefault('USD');
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setting the current currency
|
||||||
|
|
||||||
|
You can set the [current currency](#current-currency) using the `setCurrent()` method:
|
||||||
|
```php
|
||||||
|
currencies()->setCurrent('USD');
|
||||||
|
```
|
||||||
|
|
||||||
### Persisting a selected currency across requests
|
### Persisting a selected currency across requests
|
||||||
|
|
||||||
If your users can select the currency they want to see the app in, the package can automatically write the current currency to a persistent store of your choice, and read from that store on subsequent requests.
|
If your users can select the currency they want to see the app in, the package can automatically write the current currency to a persistent store of your choice, and read from that store on subsequent requests.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue