The data_fill function sets a missing value within a nested array or object using "dot" notation:
<?php $data = ['products' => ['desk' => ['price' => 100]]];

data_fill($data, 'products.desk.price', 200);


data_fill($data, 'products.desk.discount', 10);