It looks like your array is showing a hasMany relationship. Hub has many data. If you define this in your models and set up an appropriate table then eloquent will deal with the save for you. Look at https://laravel.com/docs/5.7/eloquent-relationships for info
How would you save the data when you would have the exactly the same data array as me ?
How do you want the result to look? You gave us the array, now describe what the output looks like
As it stands, the problem cannot be solved because you have two things to save and only one place to put them