palash3593 palash3593 - 5 months ago 39
PHP Question

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)

my logout code here:

public function logout()
return redirect()->intended('login');


You need to add updated_at column into your SQL table user_tbl. If you do not wish to use it. you may also turn off timestamps within your model.

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