laravel/framework — pull request #5191 by timgws (2014-07-22 02:08:32+00:00)
Title: Chunk function should return the value of closure

When using the chunk closure, we should still be able to get the value of the return in the closure.

$return = Products::chunk(10, function($products) { return false; });
var_dump($return); // (bool) false