src/Execution/DataLoader/RelationBatchLoader.php
protected function getRelationFetcher(): ModelRelationFetcher
    {
        return new ModelRelationFetcher(
            $this->getParentModels(),
            [$this->relationName => function ($query) {
                return $this->resolveInfo
                    ->builder
                    ->addScopes($this->scopes)
                    ->apply($query, $this->args);
            }]
        );
    }
protected function getRelationFetcher(): ModelRelationFetcher
    {
        return new ModelRelationFetcher(
            $this->getParentModels(),
            [$this->relationName => function ($query) {
                return $this->resolveInfo
                    ->builder
                    ->addScopes($this->scopes)
                    ->apply($query, $this->args);
            }]
        );
    }
protected function getRelationFetcher ( ) : ModelRelationFetcher { return new ModelRelationFetcher ( $ this -> getParentModels ( ) , [ $ this -> relationName => function ( $ query ) { return $ this -> resolveInfo -> builder -> addScopes ( $ this -> scopes ) -> apply ( $ query , $ this -> args ) ; } ] ) ; }
Construct a new instance of a relation fetcher.

@return \Nuwave\Lighthouse\Execution\DataLoader\ModelRelationFetcher
Construct a new instance of a relation fetcher .