Answers for "get index when you foreach in laravel view"

PHP
2

loop index foreach laravel

@foreach ($teams as $key => $team)
{{ str_ordinal($key + 1) }}
@endforeach
Posted by: Guest on February-07-2021

Code answers related to "get index when you foreach in laravel view"

Browse Popular Code Answers by Language