Laravel Blade Foreach: 3 'Tricks' You May Not Know

preview_player
Показать описание
Today I'll show you how to add conditions inside of rows in @foreach and how to shorten it into a one-liner.

- - - - -
Рекомендации по теме
Комментарии
Автор

I'm watching this at 1AM while in bed, now my brain is forcing me to get up and refactor all the views. Great content.

bhuvi
Автор

I don't speak english (I speak spanish), but I understand all, Laravel is amazing and you are a excellent teacher, the best. I've learning more with you that in the university.

arianaromero
Автор

Laravel is great 👍 when you read the documentation very carefully, you will understand most of the logics and thank you for the great content sir. We appreciate your content.

SinghatehAlagie
Автор

hi, I watch your videos every morning and then continue my laravel projects .thanks for good English pronunciation, because I'm from Iran and I realize so quickly🙏

mehrdaddadashi
Автор

Вы просто пулемет! Не поспеваю за вами! Спасибо за каждое ваше видео!

Edvard-Aliev
Автор

Love your methodology to explain all things present in actual documentation. Respect from Pakistan

nabeelyousafpasha
Автор

Thank you for the very useful video! It's important to know that @each has no $loop-variable

sergeysaharov
Автор

Why didn't I knew this before. "Seems I don't read documentation as much I should :P" Great video Thanks

BsiennKhan
Автор

One of the better ones! Good content, extremely good pedagogical strategy. Thanks!

ndeblauw
Автор

I'm just started refactoring some sections from a big project i'm working on. This video just arrived at the right time for me. 😁 This is going to be amazing! Thanks!! 👍

janjanssens
Автор

wow, Povilas, you really are a good teacher. In these minutes of video I have learned more than in any 4-hour course and of course it is about blade, but for what I knew this is another level. Thanks. 🧡

leslysuarez
Автор

I often found myself doing iteration with regular php instead of blade because the lack of comparing and other functions. Now it seems much more handy! Thanks, great content!

gram_o_phone
Автор

You are the master of Laravel Tricks in short videos 👍

codeology
Автор

Laravel is great and you're awesome. You're an excellent instructor that I have seen in programming

AlmutasimAlmazidi
Автор

That's a really good tip i didn't know about the loop

fulufheloful
Автор

Learned new thing.. Laravel blade @each. Thank you!

dk
Автор

I knew about $loop. I knew about @forelse. I totally didn't know about @else which is very nice!

JouvaMoufette
Автор

Really amazing!! I would have started your courses if I had had the chance of online payment from my country.😥😥😥 (what I can do is subscribe your channel and I did it.)

tamratteshome
Автор

Thanks for saving life, remaining was useful

shubhamsahuSD
Автор

thanks for sharing these!

although I wouldn't necessarily use all of these since I personally think that the one line final code is not readable at all

isaacrobot