Skip to content

Commit 4b76c47

Browse files
Update core
1 parent 98c152a commit 4b76c47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Controllers/ProfileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function updateProfile(Request $request, BaseHttpResponse $response)
9292
'first_name' => ['nullable', 'required_without:name', 'string', 'max:120', 'min:2'],
9393
'last_name' => ['nullable', 'required_without:name', 'string', 'max:120', 'min:2'],
9494
'name' => ['nullable', 'required_without:first_name', 'string', 'max:120', 'min:2'],
95-
'phone' => ['nullable', 'string', 'min:6', 'confirmed', ...BaseHelper::getPhoneValidationRule(true)],
95+
'phone' => ['nullable', 'string', ...BaseHelper::getPhoneValidationRule(true)],
9696
'dob' => 'required|max:15|min:8',
9797
'gender' => 'nullable',
9898
'description' => 'nullable',

src/Http/Requests/RegisterRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function rules(): array
1616
'name' => ['nullable', 'required_without:first_name', 'string', 'max:120', 'min:2'],
1717
'email' => 'required|max:60|min:6|email|unique:' . ApiHelper::getTable(),
1818
'password' => ['required', 'string', 'min:6', 'confirmed'],
19-
'phone' => ['nullable', 'string', 'min:6', 'confirmed', ...BaseHelper::getPhoneValidationRule(true)],
19+
'phone' => ['nullable', 'string', ...BaseHelper::getPhoneValidationRule(true)],
2020
];
2121
}
2222

0 commit comments

Comments
 (0)