add register page
This commit is contained in:
@@ -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 @@ class RegisterController extends Controller
|
||||
|
||||
sendSMSVerification($user->phone);
|
||||
|
||||
return to_route('sms-verification');
|
||||
return response()->json([
|
||||
'url' => route('sms-verification')
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user