How to make a radio button checked in laravel collectives?
{{Form::radio('gender','1',['class'=>'form-check-input'])}}
I'm taking the value from the database and I need to select the appropriate gender value.
$data->gender
Full code is as follows
<div class="col-sm-9" style="margin:auto">
<div class="form-check form-check-inline">
{{Form::radio('gender','1',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio1">Male</label>
</div>
<div class="form-check form-check-inline">
{{Form::radio('gender','2',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio2">Female</label>
</div>
</div>