octopyid / blade-directive-helpers
Blade directive for frequently used helpers
Installs: 112
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/octopyid/blade-directive-helpers
Requires
- php: ^8.0
README
Blade syntax for frequently used Laravel helpers, such as route, asset, url and so on.
Installation
To install the package, simply follow the steps below.
Install the package using Composer:
$ composer require octopyid/blade-directive-helpers
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')
| 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', []) |
Security
If you discover any security related issues, please email bug@octopy.id instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.