src/Mediable.php
public function detachMediaTags($tags)
    {
        $this->media()->newPivotStatement()
            ->where($this->media()->getMorphType(), $this->media()->getMorphClass())
            ->where($this->mediaQualifiedForeignKey(), $this->getKey())
            ->whereIn('tag', (array) $tags)->delete();
        $this->markMediaDirty($tags);
    }
public function detachMediaTags($tags)
    {
        $this->media()->newPivotStatement()
            ->where($this->media()->getMorphType(), $this->media()->getMorphClass())
            ->where($this->mediaQualifiedForeignKey(), $this->getKey())
            ->whereIn('tag', (array) $tags)->delete();
        $this->markMediaDirty($tags);
    }
public function detachMediaTags ( $ tags ) { $ this -> media ( ) -> newPivotStatement ( ) -> where ( $ this -> media ( ) -> getMorphType ( ) , $ this -> media ( ) -> getMorphClass ( ) ) -> where ( $ this -> mediaQualifiedForeignKey ( ) , $ this -> getKey ( ) ) -> whereIn ( 'tag' , ( array ) $ tags ) -> delete ( ) ; $ this -> markMediaDirty ( $ tags ) ; }
Remove one or more tags from the model, detaching any media using those tags.
@param  string|string[] $tags
@return void
Remove one or more tags from the model detaching any media using those tags .