foreach ($xml->product as $value) {
try {
if (empty($value->image)) throw new \Exception("Not link ". $value->index);
Product::where('product_number', $value->index)->update([
'image' => '$value->image'
]);
} catch (Exception $e) {
echo $e->getMessage();
}
}