回答編集履歴

1

エラー記載

2017/07/07 05:15

投稿

yamaoka
yamaoka

スコア27

test CHANGED
@@ -34,22 +34,22 @@
34
34
 
35
35
  ```ここに言語を入力
36
36
 
37
- FatalThrowableError
37
+ QueryException
38
38
 
39
- Parse error: syntax error, unexpected 'class' (T_CLASS)
39
+ SQLSTATE[HY000]: General error: 1364 Field 'body' doesn't have a default value (SQL: insert into `tweets` (`updated_at`, `created_at`) values (2017-07-07 05:14:44, 2017-07-07 05:14:44))
40
40
 
41
- in TweetsController.php (line 9)
41
+ in Connection.php (line 647)
42
42
 
43
- at Composer\Autoload\includeFile('C:\\xampp\\htdocs\\Twitter_crone\\twitter_clone\\twc\\vendor\\composer/../../app/Http/Controllers/TweetsController.php')
43
+ at Connection->runQueryCallback('insert into `tweets` (`updated_at`, `created_at`) values (?, ?)', array('2017-07-07 05:14:44', '2017-07-07 05:14:44'), object(Closure))
44
44
 
45
- in ClassLoader.php (line 322)
45
+ in Connection.php (line 607)
46
46
 
47
- at ClassLoader->loadClass('Patter\\Http\\Controllers\\TweetsController')
47
+ at Connection->run('insert into `tweets` (`updated_at`, `created_at`) values (?, ?)', array('2017-07-07 05:14:44', '2017-07-07 05:14:44'), object(Closure))
48
48
 
49
- at spl_autoload_call('Patter\\Http\\Controllers\\TweetsController')
49
+ in Connection.php (line 450)
50
50
 
51
- at ReflectionClass->__construct('Patter\\Http\\Controllers\\TweetsController')
51
+ at Connection->statement('insert into `tweets` (`updated_at`, `created_at`) values (?, ?)', array('2017-07-07 05:14:44', '2017-07-07 05:14:44'))
52
52
 
53
- in Container.php (line 729)
53
+ in Connection.php (line 404)
54
54
 
55
55
  ```