Answers for "illuminate \ database \ queryexception (42s22) sqlstate[42s22]: column not found: 1054 unknown column 'updated_at' in"

3

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 "illuminate \ database \ queryexception (42s22) sqlstate[42s22]: column not found: 1054 unknown column 'updated_at' in"

Browse Popular Code Answers by Language