forEach for whatever reason:
forEach() executes the callback function once for each array element; unlike map() or reduce() it always returns the value undefined and is not chainable. The typical use case is to execute side effects at the end of a chain.
Laravel Collections have
tap which perform largely the same function.
I can just use
map and return the original item at the end I suppose, but I was wondering if there was a more built-in method to do so.