3 years ago

Radio button choice is not being saved

Posted 3 years ago by osherdo

I have this 2 radio buttons:

<div class="form-group">
        A) I am a:
        {!! Form::radio('gender','male',['class'=>'form-control']) !!} Female
        {!! Form::radio('gender','female',['class'=>'form-control']) !!} Male

It does not save the selected value to the database. This is my migration line where I attach the data to:


Why is it happening? I am using laravel 5.1

Please sign in or create an account to participate in this conversation.