I have a $table->enum('situacao', ['ativo', 'exonerado']);
field.
I created a checkbox to do the registration, but it returns the following error:
1048 Column 'situation' can not be null.
How can I resolve?
The checkbox looks like this:
{!! Form::checkbox('situacao', '1') !!}
The catch is as follows:
$civil = new civil;
$civil->situacao = $request->situacao;
$civil->save();