how to get the index in foreach loop in laravel

53

loop index foreach laravel -

@foreach ($teams as $key => $team)
{{ str_ordinal($key + 1) }}
@endforeach

Comments

Submit
0 Comments