collection::map
Map a function to each item in the collection
collection::map($callback)
Parameters
$callback (\function)
Return values
\Collection