Skip to content

Commit dc6dd20

Browse files
committed
readme
1 parent eec4d92 commit dc6dd20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ $m1->format();
7474
### Helpers
7575

7676
```php
77+
money(500)
7778
money(500, 'USD')
7879
currency('USD')
7980
```
8081

8182
### Blade Directives
8283

8384
```php
85+
@money(500)
8486
@money(500, 'USD')
8587
@currency('USD')
8688
```
@@ -90,6 +92,8 @@ currency('USD')
9092
Same as the directive, there is also a `blade` component for you to create money and currency in your views:
9193

9294
```html
95+
<x-money amount="500" />
96+
or
9397
<x-money amount="500" currency="USD" />
9498
or
9599
<x-money amount="500" currency="USD" convert />

0 commit comments

Comments
 (0)