Column not found: 1054 Unknown column 'updated_at'
// turn off both
public $timestamps = false;
// turn off only updated_at
const UPDATED_AT = false;
Column not found: 1054 Unknown column 'updated_at'
// turn off both
public $timestamps = false;
// turn off only updated_at
const UPDATED_AT = false;
Unknown column '.updated_at'
In the model, write the below code;
public $timestamps = false;
Explanation : By default laravel will expect created_at & updated_at column
in your table. By making it to false it will override the default setting.
Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list'
class ABC extends Model {
//to turn of just one field
const UPDATED_AT = null;
//to turn off timestamp completely
public $timestamps = false;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us