Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SupianIDz committed Sep 14, 2021
1 parent e1700bc commit 5b333c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ $ composer require octopyid/blade-directive
```

## Usage
Just add `@` at the beginning of the helper keyword. For example, you often use syntax like this `{{ route('foo.bar') }}` with this package you can just write `@route('foo.bar')`

Just add `@` at the beginning of the helper keyword. For example, you often use syntax like this `{{ route('foo.bar') }}` with this package you can just write `@route('foo.bar')`

| HELPER | COMMON USAGE | PACKAGE USAGE |
|--------|------------------------|-------------------|
| url | {{ url('foo') }} | @url('foo') |
| mix | {{ mix('foo') }} | @mix('foo') |
| asset | {{ asset('foo') }} | @asset('foo') |
| route | {{ route('foo', []) }} | @route('foo', []) |

Expand Down

0 comments on commit 5b333c3

Please sign in to comment.