App\Student::sex must return a relationship instance
@foreach($student->sex() as $index=>$val)
<label class="radio-inline">
<input type="radio" name="Student[sex]" value="{{$index}}" {{isset($student->sex) && $student->sex == $index?"checked":""}}>{{$val}}
</label>
@endforeach
表单的一个遍历,修改页面没有问题,新增页面一直报标题错误