質問するログイン新規登録

回答編集履歴

2

追記

2019/10/30 06:20

投稿

退会済みユーザー
answer CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ![イメージ説明](d2184fc2a9fb7d82e9a4085a0bb7da75.png)
6
6
 
7
- 自分なら、以下のようにHTMLを組みますね。
7
+ 自分なら、以下のようにHTMLを組みますね。
8
8
 
9
9
  ```
10
10
  <input type="checkbox" name="hoge_check_12[]" value="1">

1

追記

2019/10/30 06:20

投稿

退会済みユーザー
answer CHANGED
@@ -2,4 +2,26 @@
2
2
 
3
3
  [https://readouble.com/laravel/5.7/ja/validation.html](https://readouble.com/laravel/5.7/ja/validation.html)
4
4
 
5
- ![イメージ説明](d2184fc2a9fb7d82e9a4085a0bb7da75.png)
5
+ ![イメージ説明](d2184fc2a9fb7d82e9a4085a0bb7da75.png)
6
+
7
+ 自分なら、以下のようおにHTMLを組みますね。
8
+
9
+ ```
10
+ <input type="checkbox" name="hoge_check_12[]" value="1">
11
+ <input type="checkbox" name="hoge_check_12[]" value="2">
12
+ <input type="checkbox" name="hoge_check_12[]" value="3">
13
+ <input type="checkbox" name="hoge_check_12[]" value="4">
14
+ <input type="checkbox" name="hoge_check_12[]" value="5">
15
+ <input type="checkbox" name="hoge_check_12[]" value="6">
16
+ <input type="checkbox" name="hoge_check_12[]" value="7">
17
+ ```
18
+
19
+ ```
20
+ <input type="checkbox" name="hoge_check[12][]" value="1">
21
+ <input type="checkbox" name="hoge_check[12][]" value="2">
22
+ <input type="checkbox" name="hoge_check[12][]" value="3">
23
+ <input type="checkbox" name="hoge_check[12][]" value="4">
24
+ <input type="checkbox" name="hoge_check[12][]" value="5">
25
+ <input type="checkbox" name="hoge_check[12][]" value="6">
26
+ <input type="checkbox" name="hoge_check[12][]" value="7">
27
+ ```