collection->map(function ($xmlInco) { return [ 'label' => $xmlInco->nice_string, 'value' => $xmlInco->id ]; })->all(); } }