Display stock in product info in price table.
This commit is contained in:
1 parent
48ee68f71a
commit
f963dcd4c8
6 files changed
+20
-7
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user