First of all let me see if I understand what you mean.
You have a form with multiple "titles" retrieved from DB, and can change multiple values at once, than submit everything to the server in one go, which than saves the new values. Correct me if I'm wrong...
If it's not a long list, you could divide every entry into it's own form to save individually, maybe even use ajax to save without refreshing the whole page...
Or maybe just loop through the entire array and update every row, but that would probably update every row even if not needed which is a bit wasteful... The code for updating is simple to implement.
On a side note, have you considered using Blade for the form? Form model binding is very useful for populating forms with existing data from DB
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community