mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: skinline tags
This commit is contained in:
@@ -10,14 +10,15 @@ class HomeController extends Controller
|
||||
public function index()
|
||||
{
|
||||
$upcomingSkins = Cache::remember('upcomingSkins_home', 60 * 4, function () {
|
||||
return ChampionSkin::where('availability', 'Upcoming')->orderBy('release_date', 'desc')->get();
|
||||
return ChampionSkin::where('availability', 'Upcoming')
|
||||
->orderBy('release_date', 'desc')->get();
|
||||
});
|
||||
|
||||
$latestSkins = Cache::remember('latestSkins_home', 60 * 4, function () {
|
||||
return ChampionSkin::where('availability', 'Available')->orderBy('release_date', 'desc')->take(9)->get();
|
||||
return ChampionSkin::where('availability', 'Available')
|
||||
->orderBy('release_date', 'desc')->take(9)->get();
|
||||
});
|
||||
|
||||
|
||||
return view('home', [
|
||||
'latestSkins' => $latestSkins,
|
||||
'upcomingSkins' => $upcomingSkins,
|
||||
|
||||
Reference in New Issue
Block a user