Example #1
0
 /**
  * Update the value with the given field.
  *
  * @param  string  $field
  * @param  mixed  $content
  * @return Value
  */
 private function updateValue(string $field, $content)
 {
     $field = $this->getField($field);
     $value = $this->query->values()->where('field_id', $field->id)->where('instance_id', $this->component->id)->first();
     $value->content = $content;
     $value->save();
 }