From 7eff34a80d3883afccf0e1b74f03cd8fedf61a30 Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Tue, 15 Mar 2022 17:22:00 +0200 Subject: [PATCH] Update ProductRequest.php --- .../Product/Http/Requests/ProductRequest.php | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/MicroweberPackages/Product/Http/Requests/ProductRequest.php b/src/MicroweberPackages/Product/Http/Requests/ProductRequest.php index 5650fe99c1b..907567016f1 100644 --- a/src/MicroweberPackages/Product/Http/Requests/ProductRequest.php +++ b/src/MicroweberPackages/Product/Http/Requests/ProductRequest.php @@ -8,13 +8,31 @@ class ProductRequest extends ContentSaveRequest { public $model = Product::class; + public $rules = [ 'title' => 'required|max:500', 'url' => 'max:500', 'content_meta_title' => 'max:500', 'content_meta_keywords' => 'max:500', 'original_link' => 'max:500', - 'price' => 'nullable|price' + 'price' => 'nullable|price', + 'qty' => 'max:50', + 'sku' => 'max:500', + 'content_data.barcode' => 'max:200', + 'content_data.track_quantity' => 'max:200', + 'content_data.sell_oos' => 'max:200', + 'content_data.qty' => 'max:200', + 'content_data.max_qty_per_order' => 'max:200', + 'content_data.physical_product' => 'max:200', + 'content_data.fixed_cost' => 'max:200', + 'content_data.weight' => 'max:200', + 'content_data.weight_type' => 'max:200', + 'content_data.free_shipping' => 'max:200', + 'content_data.width' => 'max:200', + 'content_data.height' => 'max:200', + 'content_data.depth' => 'max:200', + 'content_data.label' => 'max:200', + 'content_data.label-color' => 'max:200', ]; }