diff --git a/src/Controller/ProductController.php b/src/Controller/ProductController.php index a6f5b81..b15e938 100644 --- a/src/Controller/ProductController.php +++ b/src/Controller/ProductController.php @@ -25,7 +25,7 @@ final class ProductController extends BaseController ])->find($productId); if(null === $product) { - throw new ItemNotFoundException('Product not found'); + throw $this->createNotFoundException('Product not found'); } $priceList = $product->price()->pluck('price')->implode(',');