zhangchangchun 5 vuotta sitten
vanhempi
commit
30f178ea24
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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){