Don't order by default on paginate

parent 3c1daf91
...@@ -19,10 +19,10 @@ class EloquentPageRepository extends EloquentBaseRepository implements PageRepos ...@@ -19,10 +19,10 @@ class EloquentPageRepository extends EloquentBaseRepository implements PageRepos
public function paginate($perPage = 15) public function paginate($perPage = 15)
{ {
if (method_exists($this->model, 'translations')) { if (method_exists($this->model, 'translations')) {
return $this->model->with('translations')->orderBy('created_at', 'DESC')->paginate($perPage); return $this->model->with('translations')->paginate($perPage);
} }
return $this->model->orderBy('created_at', 'DESC')->paginate($perPage); return $this->model->paginate($perPage);
} }
/** /**
......
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