/** * Display the specified resource. * * @param string $sku * * @throws NotFoundHttpException * * @return \Illuminate\Http\Response */ public function show(string $sku) { $product = $this->mustLoadProductBySku($sku); $tags = $this->catalogueRepository->loadAllTags(); $colours = $this->catalogueRepository->loadAllColours(); $categories = $this->catalogueRepository->loadAllCategories(); $offers = Offer::all(); return $this->buildView('show', compact('product', 'tags', 'colours', 'categories', 'offers')); }