fix(pickup-exceptions): update repeat_frequency validation rules
Make 'repeat_frequency' nullable and conditionally required based on 'repeatable' status.
This commit is contained in:
parent
1f97e35046
commit
b66fc01013
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class StorePickupExceptionRequest extends FormRequest
|
|||
'label' => ['required', 'string', 'max:255'],
|
||||
'repeatable' => ['present', 'boolean:strict'],
|
||||
|
||||
'repeat_frequency' => ['required', new Enum(RepeatFrequency::class)],
|
||||
'repeat_frequency' => ['nullable', 'required_if:repeatable,true', new Enum(RepeatFrequency::class)],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue