wip on password reset

This commit is contained in:
2023-12-03 10:40:53 +05:00
parent e940d17bad
commit 1429757b42
11 changed files with 206 additions and 38 deletions

View File

@@ -60,7 +60,7 @@ class RegisterController extends Controller
*/
protected function validator(array $data)
{
$data['phone'] = unMaskPhone($data['phone']);
$data['phone'] = unMaskPhone($data['phone'] ?? '');
return Validator::make($data, [
'name' => ['required', 'string', 'max:255'],