質問編集履歴
2
メソッド修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
public function update(
|
41
|
+
public function update(UpdateAdmin $request)
|
42
42
|
|
43
43
|
{...}
|
44
44
|
|
1
メソッド追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,23 @@
|
|
25
25
|
上記を一つのクラスにまとめたいのですが、
|
26
26
|
|
27
27
|
良い方法はありますでしょうか?
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
追記
|
32
|
+
|
33
|
+
```PHP
|
34
|
+
|
35
|
+
public function store(RegisterAdmin $request)
|
36
|
+
|
37
|
+
{...}
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
public function update(RegisterAdmin $request)
|
42
|
+
|
43
|
+
{...}
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
ほとんど、更新と登録処理は同様になります。
|