original_string: protected function buildRelationQuery()
      {
          $args = func_get_args();
  
          list($relation, $args[0]) = explode('.', $this->column);
  
          return ['whereHas' => [$relation, function ($relation) use ($args) {
              call_user_func_array([$relation, $this->query], $args);
          }]];
      }
code: protected function buildRelationQuery()
      {
          $args = func_get_args();
  
          list($relation, $args[0]) = explode('.', $this->column);
  
          return ['whereHas' => [$relation, function ($relation) use ($args) {
              call_user_func_array([$relation, $this->query], $args);
          }]];
      }
code_tokens: protected function buildRelationQuery ( ) { $ args = func_get_args ( ) ; list ( $ relation , $ args [ 0 ] ) = explode ( '.' , $ this -> column ) ; return [ 'whereHas' => [ $ relation , function ( $ relation ) use ( $ args ) { call_user_func_array ( [ $ relation , $ this -> query ] , $ args ) ; } ] ] ; }
docstring: Build query condition of model relation.
  
  @return array
docstring_tokens: Build query condition of model relation .