original_string: public function with($relationships)
      {
          if (! is_array($relationships)) {
              $relationships = explode(', ', $relationships);
          }
  
          if (! in_array($relationships, $this->withRelationships)) {
              foreach ($relationships as $with) {
                  $this->withRelationships[] = $with;
              }
          }
  
          return $this;
      }
code: public function with($relationships)
      {
          if (! is_array($relationships)) {
              $relationships = explode(', ', $relationships);
          }
  
          if (! in_array($relationships, $this->withRelationships)) {
              foreach ($relationships as $with) {
                  $this->withRelationships[] = $with;
              }
          }
  
          return $this;
      }
code_tokens: public function with ( $ relationships ) { if ( ! is_array ( $ relationships ) ) { $ relationships = explode ( ', ' , $ relationships ) ; } if ( ! in_array ( $ relationships , $ this -> withRelationships ) ) { foreach ( $ relationships as $ with ) { $ this -> withRelationships [ ] = $ with ; } } return $ this ; }
docstring: Assign eager loading relationships.
  
  @param  string|array  $relationships
  @return AbstractEloquentRepository
docstring_tokens: Assign eager loading relationships .