Don't have much time currently, but what you want is slightly tricky.
Take a look at the response on this page for how they make and save a relationship form. It would require some customization but should give you an idea.
http://stackoverflow.com/questions/20684932/nesting-models-relations-in-forms-laravel
Thanks a lot that almost solved my problem.
What I did different is that I introduced another column in the toppings table named array_key and stored the array key of the topping input fields for the respective service in it, otherwise using the id as array key don't seem to be a good idea for me.
For retrieving the toppings this helped me a lot
$topping = Service::find($service_id)->toppings()
->where('array_key', $key)
->first() ?: new Topping;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community