original_string: public static function make($model, $relation)
      {
          $class = get_class($model);
  
          $instance = new static("Call to undefined relationship [{$relation}] on model [{$class}].");
  
          $instance->model = $model;
          $instance->relation = $relation;
  
          return $instance;
      }
code: public static function make($model, $relation)
      {
          $class = get_class($model);
  
          $instance = new static("Call to undefined relationship [{$relation}] on model [{$class}].");
  
          $instance->model = $model;
          $instance->relation = $relation;
  
          return $instance;
      }
code_tokens: public static function make ( $ model , $ relation ) { $ class = get_class ( $ model ) ; $ instance = new static ( "Call to undefined relationship [{$relation}] on model [{$class}]." ) ; $ instance -> model = $ model ; $ instance -> relation = $ relation ; return $ instance ; }
docstring: Create a new exception instance.
  
  @param  mixed  $model
  @param  string  $relation
  @return static
docstring_tokens: Create a new exception instance .