Feat: Updating Home, Product and Category Controllers and veiws to utilize the product service
This commit is contained in:
1 parent
65205e2760
commit
b3405c1b60
7 files changed
+83
-93
No files matched your search
@@ -23,7 +23,7 @@ public function index(string $locale)
|
||||
'name' => $product->translateAttribute('name'),
|
||||
'price' => $product->variants->first()?->prices->first()?->price->decimal,
|
||||
'image' => $product->media->first()?->getUrl(),
|
||||
'href' => route('product.show', ['product' => $product]),
|
||||
'href' => route('product.show', ['id' => $product->id]),
|
||||
]);
|
||||
|
||||
return view('home', [
|
||||
|
||||
Reference in new issue
Block a user