hebinet / blade-helpers
添加 includeOnce Blade 指令
v1.1.3
2022-08-15 15:23 UTC
Requires
- php: ^7.2|^8.0
- illuminate/contracts: ~5.8.0|^6.0|^7.0|^8.0|^9.0
- illuminate/http: ~5.8.0|^6.0|^7.0|^8.0|^9.0
- illuminate/support: ~5.8.0|^6.0|^7.0|^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: ^8.0|^9.0
README
添加新的 Blade-Directive @includeOnce
安装
您可以使用 Composer 安装它
composer require hebinet/blade-helpers
使用方法
该指令与 Laravel 的原生 @include
指令具有相同的尺寸。
您可以使用它如下
@includeOnce({view to include}) {{-- Or --}} @includeOnce({view to include}, {data to pass through})
示例
{{-- 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以获取详细信息。
安全性
如果您发现任何与安全相关的问题,请发送电子邮件至 office@hebinet.at 而不是使用问题跟踪器。
许可协议
MIT 许可协议 (MIT)。请参阅许可文件以获取更多信息。