This commit is contained in:
2023-12-02 14:50:41 +05:00
parent a57006caa3
commit 07eb044a2b
2 changed files with 11 additions and 2 deletions

View File

@@ -5,6 +5,15 @@ use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
use Illuminate\Support\Facades\Log;
/**
* Un mask phone from "+(993)-xx-xx-xx-xx"
* @param string|int $phone
*/
function unMaskPhone(string|int $phone): string
{
return substr(str_replace(['+', '(', ')', '-', '_'], '', $phone), 3);
}
/**
* Send a sms
*