Support the ongoing development of →
Input Database Forms
Last updated 2 years ago.

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
Last updated 9 years ago.

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


Sign in to participate in this thread!


Your banner here too?

Yelldon yelldon Joined 2 Mar 2015


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.

© 2024 - All rights reserved.