Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel loop with counter

 @foreach($rows as $row)
            <tr>
                <td>{{ $loop->iteration }}</td>
                <td>{{ $row->item1}}</td>
                <td>{{ $row->item2}}</td>
            </tr>
 @endforeach
Source by www.titanwolf.org #
 
PREVIOUS NEXT
Tagged: #Laravel #loop #counter
ADD COMMENT
Topic
Name
5+5 =