vendor/laravel/framework/src/Illuminate/Support/Collection.php
/**
     * Execute a callback over each nested chunk of items.
     *
     * @param  callable  $callback
     * @return static
     */
Execute a callback over each nested chunk of items.
@param  callable  $callback
@return static
Execute a callback over each nested chunk of items . @param callable $callback @return static
public function eachSpread(callable $callback)
    {
        return $this->each(function ($chunk) use ($callback) {
            return $callback(...$chunk);
        });
    }
public function eachSpread ( callable $ callback ) { return $ this -> each ( function ( $ chunk ) use ( $ callback ) { return $ callback ( ... $ chunk ) ; } ) ; }
Execute a callback over each nested chunk of items.
Execute a callback over each nested chunk of items .