fix: reverse summoner icon sorting

when you check out the icons, most of the time you probably are looking for recent ones not ones from 2009.
This commit is contained in:
Rico van Zelst
2023-11-27 17:39:59 +01:00
parent d9fac4259d
commit 383099910d

View File

@@ -13,7 +13,7 @@ class SummonerIconController extends Controller
{
$icons = QueryBuilder::for(SummonerIcon::class)
->allowedFilters('title')
->defaultSort('icon_id')
->defaultSort('-icon_id')
->paginate(72)
->appends(request()->query());