laravel/framework — pull request #5673 by rizqidjamaluddin (2014-09-07 09:56:30+00:00)
Title: Fix Collection::each not returning modified items

I assume this was unintentional; or was it meant to be used for repeating an external action instead of manipulating the internal array?

Keeping in line with the other immutable collection methods, this returns a new instance instead of modifying the existing one.