zhangchangchun 5 gadi atpakaļ
vecāks
revīzija
30f178ea24
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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){