LMongo\Eloquent\Relations\BelongsTo::update PHP 메소드

update() 공개 메소드

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