質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,7 +32,13 @@
|
|
32
32
|
|
33
33
|
if ($request->has('allergy')) {
|
34
34
|
|
35
|
+
|
36
|
+
|
35
|
-
$allergy = $request->array('allergy');
|
37
|
+
$allergy = $request->array('allergy'); //修正前
|
38
|
+
|
39
|
+
$allergy = $request->allergy; //修正後
|
40
|
+
|
41
|
+
|
36
42
|
|
37
43
|
$string = implode(",", $allergy);
|
38
44
|
|
@@ -62,13 +68,27 @@
|
|
62
68
|
|
63
69
|
<p><label>アレルギー物質<br>
|
64
70
|
|
65
|
-
<input type="checkbox" name="allergy" value="1"> えび
|
66
71
|
|
67
|
-
<input type="checkbox" name="allergy" value="2"> かに
|
68
72
|
|
69
|
-
<input type="checkbox" name="allergy" value="
|
73
|
+
<input type="checkbox" name="allergy" value="1"> えび //修正前
|
70
74
|
|
75
|
+
<input type="checkbox" name="allergy" value="2"> かに //修正前
|
76
|
+
|
77
|
+
<input type="checkbox" name="allergy" value="3"> 小麦 //修正前
|
78
|
+
|
71
|
-
<input type="checkbox" name="allergy" value="4"> そば
|
79
|
+
<input type="checkbox" name="allergy" value="4"> そば //修正前
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<input type="checkbox" name="allergy[]" value="1"> えび //修正後
|
84
|
+
|
85
|
+
<input type="checkbox" name="allergy[]" value="2"> かに //修正後
|
86
|
+
|
87
|
+
<input type="checkbox" name="allergy[]" value="3"> 小麦 //修正後
|
88
|
+
|
89
|
+
<input type="checkbox" name="allergy[]" value="4"> そば //修正後
|
90
|
+
|
91
|
+
|
72
92
|
|
73
93
|
</label></p>
|
74
94
|
|