Thrown product not found exception.

This commit is contained in:
Krzysztof Płaczek
2024-10-19 16:37:41 +02:00
parent 5ee1bba812
commit 58562746a3

View File

@@ -25,7 +25,7 @@ final class ProductController extends BaseController
])->find($productId); ])->find($productId);
if(null === $product) { if(null === $product) {
throw new ItemNotFoundException('Product not found'); throw $this->createNotFoundException('Product not found');
} }
$priceList = $product->price()->pluck('price')->implode(','); $priceList = $product->price()->pluck('price')->implode(',');