質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,39 @@
|
|
1
|
+
# 追記
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
```html
|
6
|
+
|
7
|
+
<form method="POST" action="{{ $article->id }}" accept-charset="UTF-8" onclick="return confirm(Are you sure you want to erase?);">
|
8
|
+
|
9
|
+
<input type="hidden" name="_method" value="DELETE">
|
10
|
+
|
11
|
+
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
12
|
+
|
13
|
+
<ul>
|
14
|
+
|
15
|
+
<li>
|
16
|
+
|
17
|
+
<button class="button big icon fa-trash" onclick="return confirm('Are you sure you want to delete it?')">
|
18
|
+
|
19
|
+
Delete this article
|
20
|
+
|
21
|
+
</button>
|
22
|
+
|
23
|
+
</li>
|
24
|
+
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
</form>
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
一応、Laravel 5.4使っています。
|
34
|
+
|
35
|
+
|
36
|
+
|
1
37
|
```javascript
|
2
38
|
|
3
39
|
$('form :submit').click(function (event) {
|