public function set_feature($image_id) { \DB::Statement("update images set feauture = 0 where user_id=:user_id", [':user_id' => Auth::User()->id]); \DB::table($this->table)->where('id', $image_id)->update(array("feauture" => 1)); }