mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
fix: query optimization
⚡ 166 Queries -> 2 Queries (cached)
This commit is contained in:
@@ -47,17 +47,4 @@ class ChampionRoles extends Model
|
||||
|
||||
return $transformedRoles;
|
||||
}
|
||||
|
||||
public function getRoleIcon($roleName)
|
||||
{
|
||||
$roleIcons = [
|
||||
'Toplane' => 'gm-top.png',
|
||||
'Jungle' => 'gm-jungle.png',
|
||||
'Midlane' => 'gm-mid.png',
|
||||
'Botlane' => 'gm-bot.png',
|
||||
'Support' => 'gm-support.png',
|
||||
];
|
||||
|
||||
return asset('img/' . $roleIcons[$roleName]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user