Laravel中新增`@bool` Blade指令!
The new @bool Blade directive Laravel's Blade templating engine is getting a handy new feature: the @bool directive. This allows you to directly print boolean values into strings or use them in...
Laravel的Blade模板引擎新增了@bool指令,可以直接在字符串中嵌入布尔值或用于对象构建,优化了与JavaScript的集成。此功能适用于JavaScript配置、Alpine.js数据绑定和需要布尔值的HTML属性。功能尚未发布,详情见GitHub合并请求。