From 5b7e3e118a3d6546c1f4e6170b79e12c837d24d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 16 Nov 2021 21:06:45 +0100 Subject: [PATCH] wip --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d27759a..7a8379d 100644 --- a/README.md +++ b/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 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.