mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
feat: position filter
This commit is contained in:
@@ -51,9 +51,13 @@ class ChampionController extends Controller
|
||||
return $champion->load('skins', 'lanes');
|
||||
});
|
||||
|
||||
$splashColor = Cache::remember('championSplashColorCache' . $champion->slug, 60 * 60 * 24, function () use ($champion) {
|
||||
return getAverageColorFromImageUrl($champion->getChampionImageAttribute());
|
||||
});
|
||||
$splashColor = Cache::remember(
|
||||
'championSplashColorCache' . $champion->slug,
|
||||
60 * 60 * 24,
|
||||
function () use ($champion) {
|
||||
return getAverageColorFromImageUrl($champion->getChampionImageAttribute());
|
||||
}
|
||||
);
|
||||
|
||||
$champion->splash_color = $splashColor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user