mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
feat: champ info start
This commit is contained in:
@@ -47,7 +47,11 @@ class ChampionController extends Controller
|
||||
*/
|
||||
public function show(Champion $champion)
|
||||
{
|
||||
//
|
||||
$champion = Cache::remember('championShowCache' . $champion->slug, 60 * 60 * 8, function () use ($champion) {
|
||||
return $champion->load('skins', 'lanes');
|
||||
});
|
||||
|
||||
return view('champions.show', compact('champion'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user