質問編集履歴
2
メソッド修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
public function store(RegisterAdmin $request)
|
19
19
|
{...}
|
20
20
|
|
21
|
-
public function update(
|
21
|
+
public function update(UpdateAdmin $request)
|
22
22
|
{...}
|
23
23
|
```
|
24
24
|
ほとんど、更新と登録処理は同様になります。
|
1
メソッド追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,4 +11,14 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
上記を一つのクラスにまとめたいのですが、
|
14
|
-
良い方法はありますでしょうか?
|
14
|
+
良い方法はありますでしょうか?
|
15
|
+
|
16
|
+
追記
|
17
|
+
```PHP
|
18
|
+
public function store(RegisterAdmin $request)
|
19
|
+
{...}
|
20
|
+
|
21
|
+
public function update(RegisterAdmin $request)
|
22
|
+
{...}
|
23
|
+
```
|
24
|
+
ほとんど、更新と登録処理は同様になります。
|