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:
parent
a18f675e64
commit
06fec908c6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user