質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,6 +12,74 @@
|
|
12
12
|
q.handle @ jquery.min.js:3
|
13
13
|
```
|
14
14
|
|
15
|
+
このエラー見た感じファイルがない?
|
16
|
+
```
|
17
|
+
xhrでのエラー
|
18
|
+
{readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}
|
19
|
+
abort
|
20
|
+
:
|
21
|
+
ƒ (a)
|
22
|
+
always
|
23
|
+
:
|
24
|
+
ƒ ()
|
25
|
+
catch
|
26
|
+
:
|
27
|
+
ƒ (a)
|
28
|
+
done
|
29
|
+
:
|
30
|
+
ƒ ()
|
31
|
+
fail
|
32
|
+
:
|
33
|
+
ƒ ()
|
34
|
+
getAllResponseHeaders
|
35
|
+
:
|
36
|
+
ƒ ()
|
37
|
+
getResponseHeader
|
38
|
+
:
|
39
|
+
ƒ (a)
|
40
|
+
overrideMimeType
|
41
|
+
:
|
42
|
+
ƒ (a)
|
43
|
+
pipe
|
44
|
+
:
|
45
|
+
ƒ ()
|
46
|
+
progress
|
47
|
+
:
|
48
|
+
ƒ ()
|
49
|
+
promise
|
50
|
+
:
|
51
|
+
ƒ (a)
|
52
|
+
readyState
|
53
|
+
:
|
54
|
+
4
|
55
|
+
responseJSON
|
56
|
+
:
|
57
|
+
{message: "Class 'App\Http\Controllers\Varidator' not found", exception: "Symfony\Component\Debug\Exception\FatalThrowableError", file: "/Users/kyoshida/Desktop/laravel0619/AjaxCRUD/app/Http/Controllers/PostController.php", line: 23, trace: Array(52)}
|
58
|
+
responseText
|
59
|
+
:
|
60
|
+
"{↵ "message": "Class 'App\Http\Controllers\Varidator' not found",↵ "exception": "Symfony\Component\Debug\Exception\FatalThrowableError",↵ "file": "/Users/kyoshida/Desktop/laravel0619/AjaxCRUD/app/Http/Controllers/PostController.php",↵ "line": 23,↵ "trace": [↵ {↵ "function": "addPost",↵ "class": "App\Http\Controllers\PostController",↵ "type": "->"↵ },↵ {↵ "file": "/Users/kyoshida/Desktop/laravel0619/AjaxCRUD/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",↵ "line": 54,↵ "function": "call_user_func_array"↵ },↵ {↵ "file": "/Users/kyoshida/Desktop/laravel0619/AjaxCRUD/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",↵ "line": 45,↵ "function": "callAction",↵ "class": "Illuminate\Routing\Controller",↵ "type": "->"↵ },↵ {↵ "file": "/Users/kyoshida/Desktop/laravel0619/AjaxCRUD/vendor/laravel/framework/src/Illuminate/Routing/Route.php",↵ "line": 212,↵ "function": "dispatch",↵ "class": "Illuminate\Routing\ControllerDispatcher",↵ "type": "->"↵ },↵ {↵ "file":
|
61
|
+
:
|
62
|
+
ƒ (a,b)
|
63
|
+
state
|
64
|
+
:
|
65
|
+
ƒ ()
|
66
|
+
status
|
67
|
+
:
|
68
|
+
500
|
69
|
+
statusCode
|
70
|
+
:
|
71
|
+
ƒ (a)
|
72
|
+
statusText
|
73
|
+
:
|
74
|
+
"Internal Server Error"
|
75
|
+
then
|
76
|
+
:
|
77
|
+
ƒ (b,d,e)
|
78
|
+
__proto__
|
79
|
+
:
|
80
|
+
Object
|
81
|
+
```
|
82
|
+
|
15
83
|
```php
|
16
84
|
//index.blade.php
|
17
85
|
|
1
っd
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Ajax通信を行なっていたところ毎回failを通ってしまいます。
|
2
2
|
エラー内容を見るとサーバーエラーが起きている?のですかね?
|
3
3
|
|
4
|
-
Title Bodyの中身をデバッグで調べてところ中身が
|
4
|
+
Title Bodyの中身をデバッグで調べてところ中身が確認できなかったのですが、データの受け渡しの書き方からまちがっているのですかね?POSTする段階でエラーが起きていると思われます
|
5
5
|
```
|
6
6
|
//クロームデベロッパーツール エラー内容
|
7
7
|
jquery.min.js:4 POST http://127.0.0.1:8000/addPost 500 (Internal Server Error)
|