Support the ongoing development of Laravel.io →
Input Database Forms
Last updated 2 years 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 9 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!

Eventy

Your banner here too?

Yelldon yelldon Joined 2 Mar 2015

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.