original_string: protected function resolveTransformer(Model $model, $transformer = null)
      {
          $transformer = $transformer ?: $this->resolveTransformerFromModel($model);
  
          if (is_string($transformer)) {
              $transformer = new $transformer;
          }
  
          return $this->parseTransformer($transformer, $model);
      }
code: protected function resolveTransformer(Model $model, $transformer = null)
      {
          $transformer = $transformer ?: $this->resolveTransformerFromModel($model);
  
          if (is_string($transformer)) {
              $transformer = new $transformer;
          }
  
          return $this->parseTransformer($transformer, $model);
      }
code_tokens: protected function resolveTransformer ( Model $ model , $ transformer = null ) { $ transformer = $ transformer ? : $ this -> resolveTransformerFromModel ( $ model ) ; if ( is_string ( $ transformer ) ) { $ transformer = new $ transformer ; } return $ this -> parseTransformer ( $ transformer , $ model ) ; }
docstring: Resolve a transformer.
  
  @param  \Illuminate\Database\ELoquent\Model        $model
  @param  \Flugg\Responder\Transformer|callable|null $transformer
  @return \Flugg\Responder\Transformer|callable
docstring_tokens: Resolve a transformer .