Thrown product not found exception.
This commit is contained in:
1 parent
5ee1bba812
commit
58562746a3
1 file changed
+1
-1
@@ -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(',');
|
||||||
|
|||||||
Reference in new issue
Block a user