( ! ) PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'post_id' cannot be null in /home/brasili4/brasilia-vr2016v2/vendor/illuminate/database/Connection.php on line 457
Call Stack
#TimeMemoryFunctionLocation
10.0002365008{main}( ).../index.php:0
21.62971351320require( '/home/brasili4/brasilia-vr2016v2/app/routes/website.php' ).../index.php:8
32.61703750296Phroute\Phroute\Dispatcher->dispatch( ).../website.php:270
42.61713750912call_user_func_array:{/home/brasili4/brasilia-vr2016v2/vendor/phroute/phroute/src/Phroute/Dispatcher.php:58} ( ).../Dispatcher.php:58
52.61713751336{closure:/home/brasili4/brasilia-vr2016v2/app/routes/website.php:86-90}( ).../Dispatcher.php:58
63.10173941136App\Controller\Website\Blog->lerFotografia( ).../website.php:88
73.10433961928Illuminate\Database\Eloquent\Model->save( ).../Blog.php:206
83.10433962680Illuminate\Database\Eloquent\Model->performInsert( ).../Model.php:1488
93.10433962680Illuminate\Database\Eloquent\Model->insertAndSetId( ).../Model.php:1597
103.10433962680Illuminate\Database\Eloquent\Builder->insertGetId( ).../Model.php:1628
113.10433963056Illuminate\Database\Eloquent\Builder->__call( ).../Model.php:1628
123.10433963480call_user_func_array:{/home/brasili4/brasilia-vr2016v2/vendor/illuminate/database/Eloquent/Builder.php:1423} ( ).../Builder.php:1423
133.10433963888Illuminate\Database\Query\Builder->insertGetId( ).../Builder.php:1423
143.10453964376Illuminate\Database\Query\Processors\Processor->processInsertGetId( ).../Builder.php:2107
153.10453964376Illuminate\Database\Connection->insert( ).../Processor.php:32
163.10453964376Illuminate\Database\Connection->statement( ).../Connection.php:414
173.10453964696Illuminate\Database\Connection->run( ).../Connection.php:458
183.10453964696Illuminate\Database\Connection->runQueryCallback( ).../Connection.php:685
193.10453964696Illuminate\Database\Connection->Illuminate\Database\{closure}( ).../Connection.php:722
203.10453966000execute ( ).../Connection.php:457
( ! ) Illuminate\Database\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'post_id' cannot be null (SQL: insert into `blog_stats` (`post_id`, `date`, `id`, `qtdacessos`) values (, 2017-10-19, 54.162.105.241, 1)) in /home/brasili4/brasilia-vr2016v2/vendor/illuminate/database/Connection.php on line 729
Call Stack
#TimeMemoryFunctionLocation
10.0002365008{main}( ).../index.php:0
21.62971351320require( '/home/brasili4/brasilia-vr2016v2/app/routes/website.php' ).../index.php:8
32.61703750296Phroute\Phroute\Dispatcher->dispatch( ).../website.php:270
42.61713750912call_user_func_array:{/home/brasili4/brasilia-vr2016v2/vendor/phroute/phroute/src/Phroute/Dispatcher.php:58} ( ).../Dispatcher.php:58
52.61713751336{closure:/home/brasili4/brasilia-vr2016v2/app/routes/website.php:86-90}( ).../Dispatcher.php:58
63.10173941136App\Controller\Website\Blog->lerFotografia( ).../website.php:88
73.10433961928Illuminate\Database\Eloquent\Model->save( ).../Blog.php:206
83.10433962680Illuminate\Database\Eloquent\Model->performInsert( ).../Model.php:1488
93.10433962680Illuminate\Database\Eloquent\Model->insertAndSetId( ).../Model.php:1597
103.10433962680Illuminate\Database\Eloquent\Builder->insertGetId( ).../Model.php:1628
113.10433963056Illuminate\Database\Eloquent\Builder->__call( ).../Model.php:1628
123.10433963480call_user_func_array:{/home/brasili4/brasilia-vr2016v2/vendor/illuminate/database/Eloquent/Builder.php:1423} ( ).../Builder.php:1423
133.10433963888Illuminate\Database\Query\Builder->insertGetId( ).../Builder.php:1423
143.10453964376Illuminate\Database\Query\Processors\Processor->processInsertGetId( ).../Builder.php:2107
153.10453964376Illuminate\Database\Connection->insert( ).../Processor.php:32
163.10453964376Illuminate\Database\Connection->statement( ).../Connection.php:414
173.10453964696Illuminate\Database\Connection->run( ).../Connection.php:458
183.18714037048Illuminate\Database\Connection->tryAgainIfCausedByLostConnection( ).../Connection.php:692