zhangchangchun 5 years ago
parent
commit
4bd28fabef
1 changed files with 1 additions and 1 deletions
  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){