Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel foreach loop index from 1

@foreach($items as $item)
$loop->iteration
@endforeach
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #foreach #loop #index
ADD COMMENT
Topic
Name
7+9 =