This commit is contained in:
2025-09-03 12:21:12 +05:45
parent 0307244399
commit fe641655e4
7 changed files with 108 additions and 68 deletions

View File

@@ -15,7 +15,7 @@ class CreateConsultationRequest extends FormRequest
return [
'name' => 'required|string|max:200|regex:/^[a-zA-Z. ]+$/',
'email' => 'sometimes|nullable|email|max:255',
'contact_no' => 'required|string|max:20',
'contact_no' => ['required', 'nullable', 'regex:/^\+?\d{7,15}$/'],
'age_group' => 'required|integer|between:1,7',
'procedure_of_interest' => 'required|integer|between:1,5',
'subject' => 'required|string|max:255',