Skip to content

Commit

Permalink
Removing ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 10, 2017
1 parent e493a9a commit 44dfcce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Repositories/Eloquent/EloquentBaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function all()
public function allWithBuilder() : Builder
{
if (method_exists($this->model, 'translations')) {
return $this->model->with('translations')->orderBy('created_at', 'DESC');
return $this->model->with('translations');
}

return $this->model->orderBy('created_at', 'DESC');
return $this->model;
}


Expand Down

0 comments on commit 44dfcce

Please sign in to comment.