Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel loop iternation pagination issue

@foreach ($faqs as $faq)

	{{$loop->iteration + $faqs->firstItem() - 1}}
  
@endforeach

Note: Change the "$faqs" to your collection
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Laravel #loop #iternation #pagination #issue
ADD COMMENT
Topic
Name
6+6 =