original_string: protected function resolveTableName($table)
      {
          if (! Str::contains($table, '\\') || ! class_exists($table)) {
              return $table;
          }
  
          $model = new $table;
  
          if (! $model instanceof Model) {
              return $table;
          }
  
          if ($model instanceof Pivot) {
              $this->using($table);
          }
  
          return $model->getTable();
      }
code: protected function resolveTableName($table)
      {
          if (! Str::contains($table, '\\') || ! class_exists($table)) {
              return $table;
          }
  
          $model = new $table;
  
          if (! $model instanceof Model) {
              return $table;
          }
  
          if ($model instanceof Pivot) {
              $this->using($table);
          }
  
          return $model->getTable();
      }
code_tokens: protected function resolveTableName ( $ table ) { if ( ! Str :: contains ( $ table , '\\' ) || ! class_exists ( $ table ) ) { return $ table ; } $ model = new $ table ; if ( ! $ model instanceof Model ) { return $ table ; } if ( $ model instanceof Pivot ) { $ this -> using ( $ table ) ; } return $ model -> getTable ( ) ; }
docstring: Attempt to resolve the intermediate table name from the given string.
  
  @param  string  $table
  @return string
docstring_tokens: Attempt to resolve the intermediate table name from the given string .