Answers for "laravel get loop index"

PHP
0

how to get the index in foreach loop in laravel

@foreach ($items as  $item)
{{ $loop->index }}
@endforeach
Posted by: Guest on June-07-2021
0

blade loop index

@foreach ($teams as  $team)
{{ $loop->index }}
@endforeach
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language