WIP
This commit is contained in:
@@ -40,7 +40,11 @@ class CheckoutOrderRequest extends FormRequest
|
||||
'customer_address' => ['required', 'string', 'max:255'],
|
||||
|
||||
'shipping_method' => ['required', 'string', 'max:255', Rule::in(array_keys(OrderShipping::values()))],
|
||||
|
||||
'shipping_price' => ['nullable', 'numeric'],
|
||||
'product_ids' => ['required', 'array'],
|
||||
'product_ids.*' => ['required', 'integer', 'exists:products,id'],
|
||||
|
||||
'payment_type_id' => ['required', Rule::in(array_keys(OrderPayment::values()))],
|
||||
|
||||
'notes' => ['nullable', 'string', 'max:255'],
|
||||
|
||||
Reference in New Issue
Block a user