Fixed validation rule to check the date of a new person target in the booking
create form.
This commit is contained in:
@@ -34,6 +34,7 @@ class StoreBooking extends FormRequest
|
||||
'personTarget.person_id' => 'empty_if:person_target_id'
|
||||
. '|required_with:personTarget.date',
|
||||
'personTarget.date' => 'sometimes'
|
||||
. '|nullable'
|
||||
. '|empty_if:person_target_id'
|
||||
. '|before_or_equal:date'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user