Laravel Quickies: Use collections to generate 3-dimensional labels without one single foreach loop

preview_player
Показать описание
I'll show you in this very first episode of "Laravel Quickies" how you can make use of collections to generate 3-dimensional labels super easily without using a for each loop.

Find me somewhere else:
---------------------------------------------------------------------

Support this channel:
---------------------------------------------------------------------------------------------
- Subscribe to this YouTube channel
Рекомендации по теме
Комментарии
Автор

Nice way of using the collections, surely has opened up this crossJoin method in my eyes :)

I might've misunderstood the requirements though, aren't you missing the parts for the previous shelves? In your example of 2 shelves, you only had the labels for 2.x.x, but you didn't have the 1.x.x? Also in the example of 4 shelves, you didn't have the labels for 1.x.x, 2.x.x and 3.x.x - was that intentional? Thanks for the video

tipce
Автор

It would be great if you can generate this first in PHP, and then in Laravel collection.

That should have given a much better context of what is the uniqueness/benefit of using collection.

In my experience dealing with Laravel devs (and not due to any major fault of their own), they tend to learn the "Laravel" way of doing things but they start to beleive/internalise that this is NOT doable in PHP(and by extension in any other framework/library) and this keeps their learning/knowledge pretty restricted in a certain context.

Coming from over 15 years of PHP experience, and working with Laravel devs for around 5 years now, I know this is true.

JagdeepSinghKalsi
Автор

- It feels awkward to start a video without any form of greeting
- Audio can use some tweaking (it's OK though, just some fine-tuning)
- You should post the links you show in the video description. Many people are lazy (including me) to type it over 😬
- Instead of coding the thing live, what you could do is code the end result you'd like to show, off video. Then, record the screen while shaving off sections of the code bit by bit until you have nothing left (so, go backwards). Now you can reverse the footage in your video editor and just do a voice-over of the "fake" live coding which will give you much more confidence. Even if you mess up, you can just retake the audio. That's how Jeff from Fireship (no plugging intended), creates his videos and it works in my opnion, wonderfully. Nobody's time gets "wasted".

Looking forward to the other videos :)

mabdullahsari