Yajra\Oci8\Eloquent\OracleEloquent::update PHP Méthode

update() public méthode

Update the model in the database.
public update ( array $attributes = [], array $options = [] ) : boolean | integer
$attributes array
$options array
Résultat boolean | integer
    public function update(array $attributes = [], array $options = [])
    {
        if (!$this->exists) {
            // If dirty attributes contains binary field
            // extract binary fields to new array
            if ($this->extractBinaries($dirty)) {
                return $this->newQuery()->updateLob($attributes, $this->binaryFields, $this->getKeyName());
            }
            return $this->newQuery()->update($attributes);
        }
        return $this->fill($attributes)->save();
    }