SQLSTATE[42S22]:'field list' 中的列不是 found:Unknown 列 'updated_at'(SQL:更新 `user_tbl` 设置 `remember_token` = twR4

SQLSTATE[42S22]: Column not found:Unknown column 'updated_at' in 'field list' (SQL: update `user_tbl` set `remember_token` = twR4

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list' (SQL: update `user_tbl` set `remember_token` = twR4isCzOsVYw4ODV87rC5hdLwAkhHuB8REorcfZe8uA3jlUNISHzT34oZlc, `updated_at` = 2016-08-16 12:40:05 where `id` = 1)

我的注销代码在这里:

public function logout()
{
    Auth::logout();
    return redirect()->intended('login');
}

您需要将 updated_at 列添加到您的 SQL table user_tbl 中。如果您不想使用它。您也可以在您的模型中关闭 timestamps

By default, Eloquent expects created_at and updated_at columns to exist on your tables. If you do not wish to have these columns automatically managed by Eloquent, set the $timestamps property on your model to false

https://laravel.com/docs/5.2/eloquent