mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 23:34:36 -04:00
Override phone number with international format
This commit is contained in:
parent
e59cd01996
commit
1368da0c90
@ -40,7 +40,8 @@ class HasValidPhoneNumber implements Rule
|
|||||||
*/
|
*/
|
||||||
public function passes($attribute, $value)
|
public function passes($attribute, $value)
|
||||||
{
|
{
|
||||||
|
nlog("hitting twilio");
|
||||||
|
|
||||||
$sid = config('ninja.twilio_account_sid');
|
$sid = config('ninja.twilio_account_sid');
|
||||||
$token = config('ninja.twilio_auth_token');
|
$token = config('ninja.twilio_auth_token');
|
||||||
|
|
||||||
@ -56,6 +57,8 @@ class HasValidPhoneNumber implements Rule
|
|||||||
|
|
||||||
$countryCode = $country->iso_3166_2;
|
$countryCode = $country->iso_3166_2;
|
||||||
|
|
||||||
|
nlog("hitting twilio try");
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
$phone_number = $twilio->lookups->v1->phoneNumbers($value)
|
$phone_number = $twilio->lookups->v1->phoneNumbers($value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user