I have created radio button fields as follows,
<div class="form-group">
{!! Form::label('is_kids_friendly','Kids Friendly:') !!}
{!! Form::radio('yes', 'value', null),' ', 'Yes' !!}
{!! Form::radio('no', 'value', null),' ','No' !!}
</div>
<div class="form-group">
{!! Form::label('is_kids_only','Kids Only:') !!}
{!! Form::radio('yes1', 'value1', null),' ', 'Yes' !!}
{!! Form::radio('no1', 'value1', null),' ','No' !!}
{{--{!! Form::text('is_kides_only',null,['class' => 'form-control', 'placeholder'=>'Is Kids Only']) !!}--}}
</div>
<div class="form-group">
{!! Form::label('sineor_citizan_friendly','Sineor Citizan Friendly:') !!}
{!! Form::radio('yes2', 'value2', null),' ', 'Yes' !!}
{!! Form::radio('no2', 'value2', null),' ','No' !!}
</div>
As this is radio button field, i have used boolean in database. Each time, i fill in details, It takes 0. Also, i can select multiple radio button, thats should not happen. Am i doing something wrong?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire