zhangchangchun 5 年 前
コミット
4bd28fabef
共有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)->orderBy('id','asc')->paginate($perPage);
+        return $this->topic->where($where)->orderBy('id','desc')->paginate($perPage);
     }
     //新增
     public function create($request){