public function updateMediaById($id, $options) {
    $this->options = $options;

    $this->parseOptions();

    $model = config('media.config.model');
    $this->media = $model::find($id);

    $this->media->alt = $this->getAlt();
    $this->media->title = $this->getTitle();
    $this->media->name = $this->getName();
    $this->media->weight = $this->getWeight();

    $this->media->save();
  }