LMongo\Eloquent\Model::update PHP Méthode

update() public méthode

Update the model in the database.
public update ( array $attributes = [] ) : mixed
$attributes array
Résultat mixed
    public function update(array $attributes = array())
    {
        if (!$this->exists) {
            return $this->newQuery()->update($attributes);
        }
        return $this->fill($attributes)->save();
    }
Model