reverse()
Today, we are taking a look at reverse(), the reverse() method takes a collection and reverses all of the elements in it.
isEmpty() & isNotEmpty()
In this episode, we are tackling the isEmpty() and isNotEmpty() methods in the Laravel Collection class. Explore the two methods step by step to get a deep understanding of how they work.
last()
Come along as we explore that advanced features of the last() method. The last() method, at first glance, seems like a very simple method but as we dive deeper, we discover the callback and default functionalities.
first()
At first glance, the first( ) method is very simple but it has some hidden functionality that you may not have known about. In this episode, we explore the advanced callback and default features.
groupBy()
When the need arises to pivot your collections by a field, the groupBy() method comes to the rescue. For more advanced grouping, check out the callback features.