src/Telescope.php
protected static function collectUpdates($batchId)
    {
        return collect(static::$updatesQueue)
            ->each(function ($entry) use ($batchId) {
                $entry->change(['updated_batch_id' => $batchId]);
            });
    }
protected static function collectUpdates($batchId)
    {
        return collect(static::$updatesQueue)
            ->each(function ($entry) use ($batchId) {
                $entry->change(['updated_batch_id' => $batchId]);
            });
    }
protected static function collectUpdates ( $ batchId ) { return collect ( static :: $ updatesQueue ) -> each ( function ( $ entry ) use ( $ batchId ) { $ entry -> change ( [ 'updated_batch_id' => $ batchId ] ) ; } ) ; }
Collect the updated entries for storage.

@param  string  $batchId
@return \Illuminate\Support\Collection
Collect the updated entries for storage .