我有一个像这样的循环:
@foreach($data as $d)
@if(condition==true)
{{$d}}
// Here I want to break the loop in above condition true.
@endif
@endforeach
如果条件满足,我想在数据显示后中断循环。
如何在Laravel Blade视图中实现?
@endif
之前,请使用@break
。 - Hiren Gohel