Skip to content

Commit

Permalink
Update Repository.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Maras0830 authored Aug 18, 2021
1 parent 8cca5ba commit 0db5fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0db5fea

Please sign in to comment.