sortBy()
When you need to sort a multi dimensional collection or array, let sortBy() assist. In this episode, we tackle it from basic to a custom implementation with string manipulation.
sort()
For single dimension collections there's no easier way to put it in a specific order. Learn all about custom sorting, in this episode of the Laravel Collections Guide.
zip()
Let's talk about the zip() method today, this method allows you to take 2 collections and zip them together. We'll also be looking at a trick for offsetting values.
dd()
When it comes to a long chain of method calls and transformations, sometimes, you may need to preview each step. In today's lesson, we talk about the dd() method and it does, just that.
firstWhere()
In this episode, we take a look at the filtering method of firstWhere(), a convenient shortcut method that allows a where() and first() call, all in one method. We also take a look at an upcoming change in Laravel 5.8.