From 87198b46a58938aef6a27fc0a7c6755c1ec73ce3 Mon Sep 17 00:00:00 2001 From: Paul Couture Date: Wed, 20 Dec 2023 07:07:33 +0000 Subject: [PATCH] fix: optimized artists index --- site/app/Http/Controllers/ArtistController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/app/Http/Controllers/ArtistController.php b/site/app/Http/Controllers/ArtistController.php index 5d55c2d..24786f5 100644 --- a/site/app/Http/Controllers/ArtistController.php +++ b/site/app/Http/Controllers/ArtistController.php @@ -22,7 +22,7 @@ public function index() ->withCount('artworks') ->orderBy('artworks_count', 'desc') ->paginate(100); - $podcasts = Podcast::where('published', true)->with('episodes')->get(); + $podcasts = Podcast::where('published', true)->get(); return view('profile.artists', [ 'user' => $user, 'pageTitle' => 'Artists',