Laravel in Practice Episode 1:

In this video, I will show you some tricks you might not know when working with loops in Laravel blade templates. You will learn how to use the $loop variable to access the different properties of the current loop iteration. I will also explain to you how you can use the forelse method instead of the combination of if and foreach when checking for empty states.

 

#laravel 

Laravel Tip and Tricks: Foreach Loop Tricks You Might Not Know
2.25 GEEK