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){