original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Load a set of relationships onto the mixed relationship collection.
  
  @param  string  $relation
  @param  array  $relations
  @return $this
docstring_tokens: Load a set of relationships onto the mixed relationship collection .