Answers for "updateOrCreate Unknown column 'user_device_detail.deleted_at' error"

PHP
3

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
2

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.
Posted by: Guest on July-14-2020

Code answers related to "updateOrCreate Unknown column 'user_device_detail.deleted_at' error"

Browse Popular Code Answers by Language