zhangchangchun hace 5 años
padre
commit
4bd28fabef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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){