src/Repositories/AbstractEloquentRepository.php
protected function newQuery()
    {
        $query = $this->model->newQuery();

        foreach ($this->withRelationships as $relationship) {
            $query->with($relationship);
        }

        return $query;
    }
protected function newQuery()
    {
        $query = $this->model->newQuery();

        foreach ($this->withRelationships as $relationship) {
            $query->with($relationship);
        }

        return $query;
    }
protected function newQuery ( ) { $ query = $ this -> model -> newQuery ( ) ; foreach ( $ this -> withRelationships as $ relationship ) { $ query -> with ( $ relationship ) ; } return $ query ; }
Create a new newQuery instance with eager loaded relationships.

@return newQuery
Create a new newQuery instance with eager loaded relationships .