zhangchangchun 5 年之前
父节点
当前提交
30f178ea24
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/TopicRepository.php

+ 1 - 1
app/Repositories/TopicRepository.php

@@ -44,7 +44,7 @@ class TopicRepository {
             }
         }
 
-        return $this->topic->where($where)->paginate($perPage);
+        return $this->topic->where($where)->orderBy('id','asc')->paginate($perPage);
     }
     //新增
     public function create($request){