Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

blade loop last

$loop->last

@foreach ($colors as $k => $v)
     @if($loop->last)
         // at last loop, code here
     @endif
@endforeach
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #blade #loop
ADD COMMENT
Topic
Name
2+4 =