pagination 에서의 페이지별 행 번호
Laravel2020. 7. 23. 18:06
728x90
https://stackoverflow.com/questions/18024237/increment-row-number-with-laravel-pagination
increment row number with laravel pagination
How to make increment row number with laravel pagination ? When i use pagination and i go to page 2 and above it will back to beginning. for example i will paginate(3) <tr...< p=""> </tr...<>
stackoverflow.com
@foreach ($telephone as $key=> $whatever)
<td>{{ $key+ $telephone->firstItem() }}</td>
@endforeach