src/Execution/DataLoader/ModelRelationFetcher.php
public function loadRelationsForPage(int $perPage, int $page = 1): self
    {
        foreach ($this->relations as $name => $constraints) {
            $this->loadRelationForPage($perPage, $page, $name, $constraints);
        }

        return $this;
    }
public function loadRelationsForPage(int $perPage, int $page = 1): self
    {
        foreach ($this->relations as $name => $constraints) {
            $this->loadRelationForPage($perPage, $page, $name, $constraints);
        }

        return $this;
    }
public function loadRelationsForPage ( int $ perPage , int $ page = 1 ) : self { foreach ( $ this -> relations as $ name => $ constraints ) { $ this -> loadRelationForPage ( $ perPage , $ page , $ name , $ constraints ) ; } return $ this ; }
Load all relations for the model, but constrain the query to the current page.

@param  int  $perPage
@param  int  $page
@return $this
Load all relations for the model but constrain the query to the current page .