add register page

This commit is contained in:
nurmuhammet committed 2024-07-28 15:26:09 +05:00
1 parent 74011d9eab
commit 9d65fa72b6
5 files changed
+16 -6

No files matched your search

+4
View File
@@ -49,6 +49,10 @@ function unMaskPhone(string|int $phone): string
*/
function sendSMS(string|int $phone, string|int $message)
{
if (! app()->isProduction()) {
return;
}
$client = new Client();
$headers = [
'Content-Type' => 'application/json;charset=utf-8;',
@@ -53,7 +53,9 @@ public function register(Request $request)
sendSMSVerification($user->phone);
return to_route('sms-verification');
return response()->json([
'url' => route('sms-verification')
]);
}
/**