Skip to content

Commit

Permalink
Update ProductRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 15, 2022
1 parent 3351fcc commit 7eff34a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/MicroweberPackages/Product/Http/Requests/ProductRequest.php
Expand Up @@ -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',
];

}

0 comments on commit 7eff34a

Please sign in to comment.