回答編集履歴

3

コントローラ名を断定できないので

2020/12/23 04:22

投稿

FKM
FKM

スコア3619

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ```blade
28
28
 
29
- <form action="/users/{{$user->id}}" method="post">
29
+ <form action="/任意のコントローラ名/{{$user->id}}" method="post">
30
30
 
31
31
  <input type="hidden" name="_method" value="delete">
32
32
 

2

コピペしてるだけでしたので修正

2020/12/23 04:22

投稿

FKM
FKM

スコア3619

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ```blade
28
28
 
29
- <form action="/articles/{{$article->id}}" method="post">
29
+ <form action="/users/{{$user->id}}" method="post">
30
30
 
31
31
  <input type="hidden" name="_method" value="delete">
32
32
 

1

form

2020/12/23 04:20

投稿

FKM
FKM

スコア3619

test CHANGED
@@ -26,11 +26,13 @@
26
26
 
27
27
  ```blade
28
28
 
29
+ <form action="/articles/{{$article->id}}" method="post">
30
+
29
31
  <input type="hidden" name="_method" value="delete">
30
32
 
31
33
  <button type="submit" class="bt_mini back_red bt_del" name="" value="削除">削除</button>
32
34
 
33
-
35
+ </form>
34
36
 
35
37
 
36
38