diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index bfa7192..80bd5ef 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -116,7 +116,7 @@ function sendSMS(string|int $phone, string|int $message) */ function sendSMSVerification(string|int $phone_number): ?Verification { - $phone_code = rand(10000, 99999); + $phone_code = rand(100000, 999999); $verification = Verification::where(['username' => $phone_number])->first(); $verification ? $verification->update(['code' => $phone_code]) : Verification::create(['username' => $phone_number, 'code' => $phone_code]);