【发布时间】:2017-12-24 15:56:20
【问题描述】:
我有一个这样的循环:
@foreach($data as $d)
@if(condition==true)
{{$d}}
// Here I want to break the loop in above condition true.
@endif
@endforeach
如果满足条件,我想在数据显示后中断循环。
在 laravel 刀片视图中如何实现?
【问题讨论】:
-
在
@endif之前使用@break