コードを見ただけですが,以下のように変更したらいかがでしょうか。
また,input
について,name
属性が抜けていると思います。
- <table id="detail">
<form method="post" action="{{ route('henshu') }}">
@csrf
+ <table id="detail">
<tr>
<th>No</th>
<td>{{$detail[0] -> id}}</td>
</tr>
<tr>
<th>背番号</th>
- <td><input type="text" value="{{$detail[0] -> uniform_num}}"></td>
+ <td><input type="text" name="uniform_num" value="{{$detail[0] -> uniform_num}}"></td>
</tr>
<tr>
<th>ポジション</th>
<td><select name="position">
<option value="{{$detail[0] -> position}}">GK</option>
<option value="サンプル2">DF</option>
<option value="サンプル3">MF</option>
<option value="サンプル3">FW</option>
</select>
</td>
</tr>
<tr>
<th>名前</th>
<td><input type="text" value="{{$detail[0] -> name}}"></td>
</tr>
<tr>
<th>国</th>
<td><select name="country" id="selectCountry">
@foreach($country as $c)
<option value="{{$detail[0] -> country_name}}">{{$c -> name}}</option>
@endforeach
</select>
</td>
</tr>
<tr>
<th>所属</th>
<td><input type="text" value="{{$detail[0] -> club}}"></td>
</tr>
<tr>
<th>誕生日</th>
<td><input type="date" name="calendar" max="9999-12-31" value="{{$detail[0] -> birth}}"></td>
</tr>
<tr>
<th>身長</th>
<td><input type="text" value="{{$detail[0] -> height}}"></td>
</tr>
<tr>
<th>体重</th>
<td><input type="text" value="{{$detail[0] -> weight}}"></td>
</tr>
<button type="submit">編集する</button>
+ </table>
</form>
- </table>