mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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)
|
||||
{
|
||||
|
||||
nlog("hitting twilio");
|
||||
|
||||
$sid = config('ninja.twilio_account_sid');
|
||||
$token = config('ninja.twilio_auth_token');
|
||||
|
||||
@ -56,6 +57,8 @@ class HasValidPhoneNumber implements Rule
|
||||
|
||||
$countryCode = $country->iso_3166_2;
|
||||
|
||||
nlog("hitting twilio try");
|
||||
|
||||
try{
|
||||
|
||||
$phone_number = $twilio->lookups->v1->phoneNumbers($value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user