feat: add gender and birthday to register

This commit is contained in:
2026-05-18 00:06:04 +03:30
parent ae6b32a0b2
commit 20d4336877
+3 -1
View File
@@ -207,7 +207,9 @@ public function register(Request $request)
'mobile' => ['string', new MobileNumber, 'nullable', 'required_without:email'], 'mobile' => ['string', new MobileNumber, 'nullable', 'required_without:email'],
'fcm_token' => 'string|nullable', 'fcm_token' => 'string|nullable',
'package_name' => 'string|required', 'package_name' => 'string|required',
'method' => 'string|in:code,link|nullable' 'method' => 'string|in:code,link|nullable',
'birthday' => 'date|nullable',
'gender' => ['integer', 'nullable', Rule::in(User::GENDERS)],
]); ]);
$method = $data['method'] ?? 'link'; $method = $data['method'] ?? 'link';