executor->execute( $getFrontRecipes, $request->toGetFrontRecipesQueryInput() ); return Inertia::render('front/Pages/Recipes/Index', [ 'paginatedRecipes' => $paginatedRecipes, ]); } public function show( RecipeDto $recipe, GetRelatedProductsQuery $getRelatedProducts, ): Response { $relatedProducts = $this->executor->execute( $getRelatedProducts, new GetRelatedProductsQueryInput($recipe->getId(), 10) ); return Inertia::render('front/Pages/Recipes/Show', [ 'recipe' => $recipe, 'relatedProducts' => $relatedProducts, ]); } }