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:
14
app/Helpers/HelperFunctions.php
Normal file
14
app/Helpers/HelperFunctions.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
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