Display stock in product info in price table.
This commit is contained in:
@@ -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