Owl\Repositories\Fluent\AbstractFluent::update PHP Method

update() public method

Update a record.
public update ( array $params, array $wkey, $table = null ) : integer
$params array array :key(column name) => value
$wkey array array :where key(column name) => value
$table string :table name(defalut: getTableName())
return integer :updated count number
    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);
    }