My view blade like this :
...
<div class="checkbox">
<label>
{{Form::checkbox('is_anonymous', 1, false)}} As anonymous
</label>
@if ($errors->has('is_anonymous'))
<div class="help-block">
<strong>{{ $errors->first('is_anonymous') }}</strong>
</div>
@endif
</div>
<div class="checkbox">
<label>
{{Form::checkbox('term', 1, false, array('id'=>'term'))}} I aggree
</label>
@if ($errors->has('term'))
<div class="help-block">
<strong>{{ $errors->first('term') }}</strong>
</div>
@endif
</div>
My validation like this :
public function rules()
{
return [
'is_anonymous' =>'required',
'term' =>'required'
...
];
}
If the code executed, the validation not work
There does not appear a message. Whether on the checkbox the validation process is different?
How can I solve this problem?