Display stock in product info in price table.

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

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');
}