fix: optimize home images

This commit is contained in:
Rico van Zelst
2023-11-09 12:42:03 +01:00
parent 6eb8a68f9b
commit 88a7ba0b3b
4 changed files with 22 additions and 2 deletions

View File

@@ -49,6 +49,11 @@ class ChampionSkin extends Model
];
}
public function getRouteKeyName(): string
{
return 'slug';
}
public function getRarityAttribute($value)
{
return $value === null || $value === 'NoRarity' ? 'Common' : $value;