Answers for "laravel sqlstate[42s22]: column not found: 1054 unknown column 'updated_at' in 'field list'"

PHP
5

Column not found: 1054 Unknown column 'updated_at'

// turn off both 
public $timestamps = false;

// turn off only updated_at
const UPDATED_AT = false;
Posted by: Guest on December-22-2020
-1

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;
Posted by: Guest on June-22-2021

Code answers related to "laravel sqlstate[42s22]: column not found: 1054 unknown column 'updated_at' in 'field list'"

Browse Popular Code Answers by Language