public function loadMorph($relation, $relations)
    {
        $this->pluck($relation)
            ->filter()
            ->groupBy(function ($model) {
                return get_class($model);
            })
            ->each(function ($models, $className) use ($relations) {
                static::make($models)->load($relations[$className] ?? []);
            });

        return $this;
    }
public function loadMorph($relation, $relations)
    {
        $this->pluck($relation)
            ->filter()
            ->groupBy(function ($model) {
                return get_class($model);
            })
            ->each(function ($models, $className) use ($relations) {
                static::make($models)->load($relations[$className] ?? []);
            });

        return $this;
    }
public function loadMorph ( $ relation , $ relations ) { $ this -> pluck ( $ relation ) -> filter ( ) -> groupBy ( function ( $ model ) { return get_class ( $ model ) ; } ) -> each ( function ( $ models , $ className ) use ( $ relations ) { static :: make ( $ models ) -> load ( $ relations [ $ className ] ?? [ ] ) ; } ) ; return $ this ; }
Load a set of relationships onto the mixed relationship collection.

@param  string  $relation
@param  array  $relations
@return $this
Load a set of relationships onto the mixed relationship collection .