在模型中,编写以下代码;
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.

在模型中,编写以下代码;
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.