Procházet zdrojové kódy

列表升序改为倒序排列

durong před 5 roky
rodič
revize
e1de490a83
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Repositories/MusicRepository.php

+ 1 - 1
app/Repositories/MusicRepository.php

@@ -35,7 +35,7 @@ class MusicRepository
             $where[] = ['id', '=', $request['id']];
         }
 
-        return $this->postMusicCategory->where($where)->orderBy('id', 'asc')->paginate($perPage);
+        return $this->postMusicCategory->where($where)->orderBy('id', 'desc')->paginate($perPage);
     }
 
     public function categoryCreate($request)