Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jul 11, 2023
1 parent eec4d92 commit dc6dd20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ $m1->format();
### Helpers

```php
money(500)
money(500, 'USD')
currency('USD')
```

### Blade Directives

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

```html
<x-money amount="500" />
or
<x-money amount="500" currency="USD" />
or
<x-money amount="500" currency="USD" convert />
Expand Down

0 comments on commit dc6dd20

Please sign in to comment.