You should be fine if you change the name of the text form field to "exercise_id" instead of 'exercise_id[][exercise_id]'.
Hey Elena, thanks for getting back to me!
Yea it does work, but only for my pregenerated input field. How can I do so that my dynamic fields are also saved to the database?
Thanks!
The general idea is $workout->update(Input::all()) (http://laravel.com/docs/4.2/queries#updates) , but you'd need to apply some security checks to that.
If you already have the dynamically generated fields (from a pre-defined set, I guess) on the table then you should just set the $fillable property on your model, but if the fields are truly dynamic, added in a separate table, then you should probably implement your own logic.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community