Display stock in product info in price table.

This commit is contained in:
Krzysztof Płaczek committed 2024-11-17 16:38:22 +01:00
1 parent 48ee68f71a
commit f963dcd4c8
6 files changed
+20 -7

No files matched your search

-1
View File
@@ -23,7 +23,6 @@ final class ProductController extends BaseController
'price' => fn($query) => $query->orderBy('created_at', 'desc'),
'stock' => fn($query) => $query->orderBy('created_at', 'desc'),
])->find($productId);
if(null === $product) {
throw $this->createNotFoundException('Product not found');
}