feat: update product and variant resources to improve variant selection handling and response structure

This commit is contained in:
2026-06-30 16:53:23 -03:00
parent cb15905c46
commit 429fa36b05
5 changed files with 33 additions and 27 deletions

View File

@@ -59,7 +59,7 @@ class ProductController extends Controller
protected function resolveScopedProduct(Tenant $tenant, Product $product): Product
{
if ($product->tenant_codigo !== $tenant->codigo) {
throw new NotFoundHttpException('Product not found for tenant.');
throw new NotFoundHttpException('Product not found.');
}
return $product;