Skip to content
Advertisement

Tag: checkbox

Laravel 7 – Edit and update value of checkbox in form

I want to uncheck / check the checkbox for ‘active’ users based on the value set in the form. In MySQL database, I added an ‘active’ column of type ‘tinyint (1)’ in table ‘users’. I have a form to edit different values ​​of the users, like name, email, etc. When I submit the form, everything updates fine except the checkbox,

Show checkbox checked in the table

I have a problem showing the selected check value in the table. Now I cannot follow my selected value to show the check values in each row in the table. For example below coding,I have the selected values following are true,false,true,false,true,false, I need to show these values in the checkbox, so I make these value to become checked or uncheck,

Advertisement