[Lesson 16] 🤔 Better than Laravel Blade ForEach? (Plus Blades $loop variable, its quite awesome)

Опубликовано: 07 Июль 2020
на канале: Zak H.
1k
27

Lesson 16 of our Laravel 7 From The Ground Up Series, we're going to dive deeper into the realm of Laravel Blade.

In the last lesson we used Blade's foreach directive to iterate over all of our posts on our posts index view page....is there a better option?


I believe so. Utilizing a combination of the blade directive along side the insanely convenient Laravel Blade "$loop" variable there's no doubt you'll at least consider the idea that may not be the go to option when iterating over a collection of items within Laravel.

Come along as we partake on some R&D, AKA research and development, researching alternatives to the foreach blade directive via software development.

You're going to dig the Laravel Blade "$loop" variable, I'm telling ya, the thing is is nifty and radiates Simplification.


~~~~~~~~~~~~~~~~~~~
Clean Code Studio ~ Simplify!
Clean Code Clean Life
~~~~~~~~~~~~~~~~~~~~


~~~~~
Github
~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~
NpmJS Packages
~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~
Packagist (Composer) Packages
~~~~~~~~~~~~~~~~~~~~~~


~~~~~~
LinkedIn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~