Plank\Mediable\Mediable::detachMediaTags PHP Метод

detachMediaTags() публичный Метод

Remove one or more tags from the model, detaching any media using those tags.
public detachMediaTags ( string | array $tags ) : void
$tags string | array
Результат void
    public function detachMediaTags($tags)
    {
        $this->media()->newPivotStatement()->where($this->media()->getMorphType(), $this->media()->getMorphClass())->where($this->media()->getForeignKey(), $this->getKey())->whereIn('tag', (array) $tags)->delete();
        $this->markMediaDirty($tags);
    }