The collapse method combines all the first-level items of a collection into a new, single collection. The returned value of the collapse method is an instance ...
The crossJoin method is used to join the items within the collection instance with the values of the input arrays, or collections, with all possible ...
The containsStrict method is similar to the contains method; it acts as a shortcut to calling the contains method with a strict comparison operator.
The contains method is used to determine if a given $key exists within the collection. The following example shows how the contains method can be used on ...
In the following example, we will look at an example collection containing the names of departments and the number of employees within each department.
Covering topics from JavaScript to Laravel, and everything in-between since 2012.
© Stillat, LLC. All right reserved. Code highlighting provided by Torchlight