octopyid/blade-directive-helpers

Blade directive for frequently used helpers

v1.0.1 2021-09-14 18:30 UTC

This package is auto-updated.

Last update: 2024-05-12 05:29:21 UTC


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.