Response { $books = $this->getBooks(auth()->user()); return view('home.index', ['recommendedBooks' => $books]); } private function getBooks($user): array { if (FeatureToggle::disabled('new_recommendation')) { return $this->latestBookService->findRecentlyAdded($user); } return $this->recommendationService->recommendByPersonalizedLogic($user); } 11