Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

loop foreach laravel with number

@foreach($users as $index => $user)
  <td>{{ $index + 1 }}</td>
  <td>{{ $user->username }}</td>
@endforeach
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #foreach #laravel #number
ADD COMMENT
Topic
Name
8+3 =