Blade syntax for frequently used Laravel helpers, such as route
, asset
, url
and so on.
To install the package, simply follow the steps below.
Install the package using Composer:
$ composer require octopyid/blade-directive-helpers
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', []) |
If you discover any security related issues, please email bug@octopy.id instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.