回答編集履歴
2
optionのvalueが抜けていたので修正
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
<select id="name" type="text" name="name">
|
38
38
|
|
39
|
-
<option selected="selected">{{$edits->name}}</option>
|
39
|
+
<option selected="selected" value="{{$edits->name}}">{{$edits->name}}</option>
|
40
40
|
|
41
41
|
</select>
|
42
42
|
|
1
追記
test
CHANGED
@@ -27,3 +27,17 @@
|
|
27
27
|
->first(); // ←firstは最初の一件だけを返す
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
それと、そもそもselectの使い方も間違えているので訂正しておきます。
|
34
|
+
|
35
|
+
```PHP
|
36
|
+
|
37
|
+
<select id="name" type="text" name="name">
|
38
|
+
|
39
|
+
<option selected="selected">{{$edits->name}}</option>
|
40
|
+
|
41
|
+
</select>
|
42
|
+
|
43
|
+
```
|