Support the ongoing development of Laravel.io →
Input Database Forms
Last updated 3 months ago.
0

The way you generate the form should be ok. Form model is not an option for a form related to 100 records. To update you need to iterate the array and execute a query for each element on it.

foreach(Input::get("change") as $id=>$value){
    DB::table("change")->where("id", "=", $id)->update(["change"=>$value]);
    /* or if Change model exists
    Change::find($id)->update(["change"=>$value]);
    */
}
Last updated 7 years ago.
0

Thank you longilino. After I read your response, I felt like an idiot. I was actually under thinking the issue.

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Yelldon Yelldon yelldon Joined 2 Mar 2015

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.