src/Mediable.php
public function loadMediaMatchAll($tags = [])
    {
        $tags = (array) $tags;
        $this->load(['media' => function (MorphToMany $q) use ($tags) {
            $this->addMatchAllToEagerLoadQuery($q, $tags);
        }]);

        return $this;
    }
public function loadMediaMatchAll($tags = [])
    {
        $tags = (array) $tags;
        $this->load(['media' => function (MorphToMany $q) use ($tags) {
            $this->addMatchAllToEagerLoadQuery($q, $tags);
        }]);

        return $this;
    }
public function loadMediaMatchAll ( $ tags = [ ] ) { $ tags = ( array ) $ tags ; $ this -> load ( [ 'media' => function ( MorphToMany $ q ) use ( $ tags ) { $ this -> addMatchAllToEagerLoadQuery ( $ q , $ tags ) ; } ] ) ; return $ this ; }
Lazy eager load attached media relationships matching all provided tags.
@param  string|string[] $tags one or more tags
@return $this
Lazy eager load attached media relationships matching all provided tags .