diff --git a/src/Repository/Repository.php b/src/Repository/Repository.php index 4ec3b9b..61344ce 100644 --- a/src/Repository/Repository.php +++ b/src/Repository/Repository.php @@ -45,7 +45,7 @@ public function makeModel() throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model"); } - return $this->model = $model->newModelQuery(); + return $this->model = $model->query(); } public function resetModel()