src/Mediable.php
public function scopeWithMediaMatchAll(Builder $q, $tags = [])
    {
        $tags = (array) $tags;
        $q->with(['media' => function (MorphToMany $q) use ($tags) {
            $this->addMatchAllToEagerLoadQuery($q, $tags);
        }]);
    }
public function scopeWithMediaMatchAll(Builder $q, $tags = [])
    {
        $tags = (array) $tags;
        $q->with(['media' => function (MorphToMany $q) use ($tags) {
            $this->addMatchAllToEagerLoadQuery($q, $tags);
        }]);
    }
public function scopeWithMediaMatchAll ( Builder $ q , $ tags = [ ] ) { $ tags = ( array ) $ tags ; $ q -> with ( [ 'media' => function ( MorphToMany $ q ) use ( $ tags ) { $ this -> addMatchAllToEagerLoadQuery ( $ q , $ tags ) ; } ] ) ; }
Query scope to eager load attached media assigned to multiple tags.
@param  \Illuminate\Database\Eloquent\Builder $q
@param  string|string[]                       $tags
@return void
Query scope to eager load attached media assigned to multiple tags .