public function newQuery() : QueryBuilder
    {
        $model = $this->container->make($this->getModelName());

        if (!$model instanceof Model) {
            throw new RepositoryException("Class {$this->model()} must be an instance of " . Model::class);
        }

        return $model->newQuery();
    }
public function newQuery() : QueryBuilder
    {
        $model = $this->container->make($this->getModelName());

        if (!$model instanceof Model) {
            throw new RepositoryException("Class {$this->model()} must be an instance of " . Model::class);
        }

        return $model->newQuery();
    }
public function newQuery ( ) : QueryBuilder { $ model = $ this -> container -> make ( $ this -> getModelName ( ) ) ; if ( ! $ model instanceof Model ) { throw new RepositoryException ( "Class {$this->model()} must be an instance of " . Model :: class ) ; } return $ model -> newQuery ( ) ; }
Create a new query instance

@method newQuery
@return QueryBuilder [description]
Create a new query instance