Removing ordering

parent e493a9a7
...@@ -56,10 +56,10 @@ abstract class EloquentBaseRepository implements BaseRepository ...@@ -56,10 +56,10 @@ abstract class EloquentBaseRepository implements BaseRepository
public function allWithBuilder() : Builder public function allWithBuilder() : Builder
{ {
if (method_exists($this->model, 'translations')) { 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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment