Laravel Blade $loop: Auto-increment Numbers in Pagination?

Did you know about the $loop object in Blade @foreach loop? And how can you calculate the current iteration number? Let me show you. Official docs on $loop: #the-loop-variable - - - - - Support the channel by checking out my products: - My Laravel courses: - Laravel QuickAdminPanel: - Livewire Kit Components: - - - - - Other places to follow: - My weekly Laravel newsletter: - My personal Twitter:
Back to Top