I am looking for a way to flatten this array:
$array = ['parent' => ['childA' => "value", 'childB' => "value"]];
to:
$array = ['parent.childA' => "value", 'parent.childB' => "value"];
Is there an elegant way to do this in Laravel? For example with Laravel Collections.