1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add custom validation rule for 'steps' field

This commit is contained in:
Benjamin Beganović 2024-02-29 17:36:25 +01:00
parent a18f675e64
commit 06fec908c6

View File

@ -63,7 +63,8 @@ class StoreSubscriptionRequest extends Request
'registration_required' => 'bail|sometimes|bool',
'optional_recurring_product_ids' => 'bail|sometimes|nullable|string',
'optional_product_ids' => 'bail|sometimes|nullable|string',
'use_inventory_management' => 'bail|sometimes|bool'
'use_inventory_management' => 'bail|sometimes|bool',
'steps' => 'sometimes', // @todo: build custom validation rule to ensure order & deps are right.
];
return $this->globalRules($rules);