I have a some unchecked and some checked checkboxes in my View. Displaying properly with value set to 1 if checked and value set to 0 if unchecked. But if I change an unchecked to a checked one and then try and save it with ~~~ Input::all() ~~~ then I still only get the old value which was 0.
How does Laravel know that a checkbox has been changed to a checked one? It seems to be getting the value of the formerly unchecked box which is 0 when submitted. Do I have to use Javascript to change the value to 1 before submitting to the Laravel Controller?
TY!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community