Problems occurred when calling EloquentOrmsave.

Source: Internet
Author: User
Error message: Fatalerror: Uncaughtexception & #039; PDOException & #039; withmessage & #039; SQLSTATE [42S22]: Columnnotfound: 1054 Unknowncolumn & #039; updated_at & #039; in & #039; fieldlist & #039; & #039; inhomeparallels?topwwwvendor... the error message is as follows: Fatal error: Uncaught exception 'pdoexception' with message 'sqlstate [42S22]: Column not found: 1054 Unknown column 'updated _ at' in 'field list''' in/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php: 369 Stack trace: #0/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php (369): PDO-> prepare ('insert bl...') #1 /home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection.php(617): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'insert into Bl... ', Array) #2/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php (581): IlluminateDatabaseConnection-> runQueryCallback ('insert bl...', Array, Object(Closure)) #3 /home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection.php(370): Illuminate\Database\Connection->run('insert into Bl... ', Array, Object (Closure )) #4/home/parallels/Desktop/www/vendor in/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php on line 625

Reply content:

The error message is as follows: Fatal error: Uncaught exception 'pdoexception' with message 'sqlstate [42S22]: Column not found: 1054 Unknown column 'updated _ at' in 'field list''' in/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php: 369 Stack trace: #0/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php (369): PDO-> prepare ('insertbl...') #1 /home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection.php(617): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'insert into Bl... ', Array) #2/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php (581): IlluminateDatabaseConnection-> runQueryCallback ('insertbl...', Array, Object(Closure)) #3 /home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection.php(370): Illuminate\Database\Connection->run('insert into Bl... ', Array, Object (Closure )) #4/home/parallels/Desktop/www/vendor in/home/parallels/Desktop/www/vendor/illuminate/database/Illuminate/Database/Connection. php on line 625

At first, the field is missing in your table structure.updated_at, Can bedatetime Ortimestamp Type

Is orm well debugged?

The column is missing .. It is best not to create a table manually .. You can use a migration tool to create

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.