質問編集履歴

1

変更

2020/07/28 09:22

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -2,11 +2,15 @@
2
2
 
3
3
  ```ここに言語を入力
4
4
 
5
- $request->validate([
5
+ protected $rules = [
6
6
 
7
- 'name' => 'unique:tests,name',
7
+ 'test' => [
8
8
 
9
+ 'name' => 'required|max:255',
10
+
9
- ],);
11
+ ],
12
+
13
+ ];
10
14
 
11
15
  ```
12
16