我有一个这样的循环:
@foreach($data as $d)
@if(condition==true)
{{$d}}
// Here I want to break the loop in above condition true.
@endif
@endforeach
如果满足条件,我想在数据显示后打破循环。
如何在 laravel 刀片视图中实现?
原文由 Sagar Gautam 发布,翻译遵循 CC BY-SA 4.0 许可协议
来自 Blade 文档: