public function update(array $params, array $wkey, $table = null)
{
if (is_null($table)) {
$table = $this->getTableName();
}
$params = $this->setTimestamps($params, false);
return \DB::table($table)->where(key($wkey), '=', current($wkey))->update($params);
}