Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

imarkdesigns's avatar

Update multiple array of uncheck checkbox

I posted my question here including all of the codes. However, before the codes was working even if I update the old tablelist of users to jQuery DataTables.

I tried to use some of the codes from the programmer codes but no luck.

https://stackoverflow.com/questions/46011075/laravel-update-multiple-uncheck-checkbox-array-to-database

0 likes
2 replies
Snapey's avatar

You don't post any of the code where the checkboxes are saved?

Remember that checkboxes are NOT present in form data if they are unchecked. You have to test if it is present or set to false

for instance

    $account->state = $request->state==1 ? true : false ;
imarkdesigns's avatar

i just commented the programmers code where i thought previously it was working. i tried various codes, but i am already desperate to fix the issue.

Please or to participate in this conversation.