original_string: public function paginateWith($loaders, $constraints = [], $paginate = [])
      {
          $categories = $this->getModel()->with($loaders);
  
          if (count($constraints) > 0) {
              $categories->where($constraints);
          }
  
          return $this->paginate($categories, $paginate);
      }
code: public function paginateWith($loaders, $constraints = [], $paginate = [])
      {
          $categories = $this->getModel()->with($loaders);
  
          if (count($constraints) > 0) {
              $categories->where($constraints);
          }
  
          return $this->paginate($categories, $paginate);
      }
code_tokens: public function paginateWith ( $ loaders , $ constraints = [ ] , $ paginate = [ ] ) { $ categories = $ this -> getModel ( ) -> with ( $ loaders ) ; if ( count ( $ constraints ) > 0 ) { $ categories -> where ( $ constraints ) ; } return $ this -> paginate ( $ categories , $ paginate ) ; }
docstring: Paginates the given query and load relationship.
  
  @param  string|array $loaders
  @param  array $constraints
  @param  array $paginate
  
  @return LengthAwarePaginator
docstring_tokens: Paginates the given query and load relationship .