Laravel Collections – Introduction to Collections

Laravel Collections are one of the most powerful features of Laravel. Basically, collections are PHP arrays but it’s an Object Oriented approach to deal with PHP arrays. Laravel collections offer…

Read more »
laravel collection make method

Laravel Collections – make Method

Laravel Collections Illuminate\Support\Collection class provides number of static helper functions that help us to create new instance of collection. Static API’s make method creates a new instance of a collection with the provided array. Signature…

Read more »
laravel collections wrap and unwrap methods

Laravel Collections – wrap() and unwrap() Methods

In this post, we will look at how wrap() and unwrap() methods can be used when dealing with Laravel Collections. This is a third part of Laravel Collections Series. Laravel Collection…

Read more »
laravel collection map

Laravel Collections – map() Method

In this post, we will look at how we can use map() method to perform some action on each element of Laravel Collections. The map method applies a given callback function to…

Read more »