feat: skin list

This commit is contained in:
Rico van Zelst
2023-11-09 12:20:46 +01:00
parent 70306245e6
commit 2b8e6d9327
17 changed files with 582 additions and 4 deletions

View File

@@ -49,6 +49,11 @@ class ChampionSkin extends Model
];
}
public function getRarityAttribute($value)
{
return $value === null || $value === 'NoRarity' ? 'Common' : $value;
}
public function champion(): BelongsTo
{
return $this->belongsTo(Champion::class, 'champion_id', 'champion_id');