LMongo\Eloquent\Relations\BelongsTo::update PHP Method

update() public method

Update the parent model on the relationship.
public update ( array $attributes ) : mixed
$attributes array
return mixed
    public function update(array $attributes)
    {
        $instance = $this->getResults();
        return $instance->fill($attributes)->save();
    }