Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.