rf1705/blade-helpers
Laravel Blade Helpers
Adds a new Blade-Directive @includeOnce
Installation
You can install it using Composer:
composer require hebinet/blade-helpers
Usage
The directive has the same footprint as the native Laravel @include directive.
You can use it like this:
@includeOnce({view to include})
{{-- Or --}}
@includeOnce({view to include}, {data to pass through})
Examples
{{-- Will include the view 'include-test' once --}}
@includeOnce('include-test')
{{-- Or you can even pass some data to the view --}}
@includeOnce('include-test', ['data'=>4])
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email office@hebinet.at instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.4 | ^7.2| | ~5.8.0| | MIT | |
| v1.1.3 | ^7.2| | ~5.8.0| | MIT | |
| v1.1.2 | ^7.2| | ~5.8.0| | MIT | |
| v1.1.1 | ^7.2 | ~5.8.0| | MIT | |
| v1.1.0 | ^7.2 | ~5.8.0| | MIT | |
| v1.0.0 | ^7.2 | 5.8.* | MIT |