src/Execution/DataLoader/ModelRelationFetcher.php
public function setRelations(array $relations): self
    {
        // Parse and set the relations.
        $this->relations = $this->newModelQuery()
            ->with($relations)
            ->getEagerLoads();

        return $this;
    }
public function setRelations(array $relations): self
    {
        // Parse and set the relations.
        $this->relations = $this->newModelQuery()
            ->with($relations)
            ->getEagerLoads();

        return $this;
    }
public function setRelations ( array $ relations ) : self { // Parse and set the relations. $ this -> relations = $ this -> newModelQuery ( ) -> with ( $ relations ) -> getEagerLoads ( ) ; return $ this ; }
Set the relations to be loaded.

@param  array  $relations
@return $this
Set the relations to be loaded .