Getting the error in laravel SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘updated_at’ in ‘field list’
(SQL: update emp_details
set testID
= 999, updated_at
= 2018-09-03 14:50:09 where (testID
= 1))
This error usually comes when the updated_at field missing in the laravel table.if the fields are not in the table in the database we can add the below conditions to fix the issue.
1 2 |
public $timestamps = false; protected $dates = ['created_at','updated_at']; |