1
I have the following code:
@foreach($listaProdutos as $key => $listaProduto)  
     @if(...)   
         ...
     @endif
@endforeach
Is there any command or way to jump to the next record of $listaProduto if the condition @if be satisfied?
1
I have the following code:
@foreach($listaProdutos as $key => $listaProduto)  
     @if(...)   
         ...
     @endif
@endforeach
Is there any command or way to jump to the next record of $listaProduto if the condition @if be satisfied?
0
There is, the @continue
@foreach($listaProdutos as $key => $listaProduto)  
     @if(...)   
         @continue
     @endif
@endforeach
References:
Browser other questions tagged php laravel foreach laravel-blade
You are not signed in. Login or sign up in order to post.