Laravel 5 Collections: Transforming Collection Elements With map
The map method applies a given $callback to each item in the collection. The $callback can modify the item which will be added to a new collection. The map method does not modify the original collection, but returns a new collection instance with...