Laravel in Practice: Foreach Loop Tricks You Might Not Know

Опубликовано: 31 Октябрь 2024
на канале: TALL Stack Stories
2,647
34

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.

Follow me on Twitter for more news, tips & tricks for Laravel, VueJS, TailwindCSS, Livewire:   / chelev  

Visit my blog at: https://chelev.com/

Checkout out my list of resources I use daily: https://chelev.com/page/resources

If you like this video support me by subscribing to my channel. I will be posting a lot of useful tips for web development with Laravel, VueJS, TailwindCSS, Livewire, and more.