I have a field called state and it is with a boolean attribute, I want to save it in the database when the input is in the checked state that stores the value 1 and the other one that stores 0, do you have any doubt about how to do it, Do you have to do with ajax, or is there another way to do it? I'm working with laravel 5.2.
Thank you very much.
<div class="switch">
<label>INACTIVO<input type="checkbox" checked><span class="lever"></span>ACTIVO</label>
</div>