diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 6acdc6a..4d655e8 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -43,7 +43,7 @@ class HomeController extends Controller ->where('ejaculations.link', '<>', '') ->orderBy('ejaculations.ejaculated_date', 'desc') ->select('ejaculations.*') - ->with('user') + ->with('user', 'tags') ->take(5) ->get(); diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 572ef8b..9657002 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -36,6 +36,7 @@ SQL $query = $query->where('is_private', false); } $ejaculations = $query->orderBy('ejaculated_date', 'desc') + ->with('tags') ->paginate(20); return view('user.profile')->with(compact('user', 'ejaculations')); @@ -116,6 +117,7 @@ SQL $query = $query->where('is_private', false); } $ejaculations = $query->orderBy('ejaculated_date', 'desc') + ->with('tags') ->paginate(20); return view('user.profile')->with(compact('user', 'ejaculations'));