feat: validate tests
This commit is contained in:
@@ -33,7 +33,6 @@ class UpdateUserRequest extends FormRequest
|
||||
'pacePreference' => ['sometimes', Rule::enum(PacePreference::class)],
|
||||
'sex' => ['sometimes', Rule::enum(UserSex::class)],
|
||||
'dateOfBirth' => ['sometimes', 'nullable', 'date_format:Y-m-d', 'before:today', 'after:1900-01-01'],
|
||||
'date_of_birth' => ['sometimes', 'nullable', 'date_format:Y-m-d', 'before:today', 'after:1900-01-01'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user