What is the best practice for saving and updating a checkbox in Laravel?
I have set the boolean data type and a default values is 0 in migration file and if i try to save the checkbox i get this error:
Incorrect integer value: 'on' for column
and what about the update method also...
this is my checkbox in view file:
{!! Form::checkbox('clothing_supplied', null, isset($event) ? $event->clothing_supplied : 0, ['id' => 'check', 'class' => 'form-control' ]) !!}
and this is how i update
$event->update($request->all());