public function increment($id) { $this->model->where("id",'=', $id)->update(['rating'=> DB::raw('count+1')]); } I am getting the following error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'count' in 'field list' (SQL: update
newssetrating= count+1,updated_at= 2019-04-13 08:12:51 whereid= 5)
I also tried
->update(['rating'=>'count+1']);