original_string: protected function getRelationInputs($inputs = [])
      {
          $relations = [];
  
          foreach ($inputs as $column => $value) {
              if (method_exists($this->model, $column)) {
                  $relation = call_user_func([$this->model, $column]);
  
                  if ($relation instanceof Relation) {
                      $relations[$column] = $value;
                  }
              }
          }
  
          return $relations;
      }
code: protected function getRelationInputs($inputs = [])
      {
          $relations = [];
  
          foreach ($inputs as $column => $value) {
              if (method_exists($this->model, $column)) {
                  $relation = call_user_func([$this->model, $column]);
  
                  if ($relation instanceof Relation) {
                      $relations[$column] = $value;
                  }
              }
          }
  
          return $relations;
      }
code_tokens: protected function getRelationInputs ( $ inputs = [ ] ) { $ relations = [ ] ; foreach ( $ inputs as $ column => $ value ) { if ( method_exists ( $ this -> model , $ column ) ) { $ relation = call_user_func ( [ $ this -> model , $ column ] ) ; if ( $ relation instanceof Relation ) { $ relations [ $ column ] = $ value ; } } } return $ relations ; }
docstring: Get inputs for relations.
  
  @param array $inputs
  
  @return array
docstring_tokens: Get inputs for relations .