original_string: public function scopeWithout($query, $relations)
      {
          $relations = is_array($relations) ? $relations : array_slice(func_get_args(), 1);
          $relationships = array_dot($query->getEagerLoads());
          foreach ($relations as $relation) {
              unset($relationships[$relation]);
          }
  
          return $query->setEagerLoads([])->with(array_keys($relationships));
      }
code: public function scopeWithout($query, $relations)
      {
          $relations = is_array($relations) ? $relations : array_slice(func_get_args(), 1);
          $relationships = array_dot($query->getEagerLoads());
          foreach ($relations as $relation) {
              unset($relationships[$relation]);
          }
  
          return $query->setEagerLoads([])->with(array_keys($relationships));
      }
code_tokens: public function scopeWithout ( $ query , $ relations ) { $ relations = is_array ( $ relations ) ? $ relations : array_slice ( func_get_args ( ) , 1 ) ; $ relationships = array_dot ( $ query -> getEagerLoads ( ) ) ; foreach ( $ relations as $ relation ) { unset ( $ relationships [ $ relation ] ) ; } return $ query -> setEagerLoads ( [ ] ) -> with ( array_keys ( $ relationships ) ) ; }
docstring: Set the relationships that should not be eager loaded.
  
  @param Illuminate\Database\Query\Builder $query
  @param mixed                             $relations
  
  @return $this
docstring_tokens: Set the relationships that should not be eager loaded .