zhangchangchun лет назад: 5
Родитель
Сommit
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){