zhangchangchun 5 rokov pred
rodič
commit
4bd28fabef
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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){