diff --git a/config/swissecho.php b/config/swissecho.php index fa50b6d..20d11ca 100644 --- a/config/swissecho.php +++ b/config/swissecho.php @@ -59,7 +59,8 @@ 'auth' => [ 'username' => env('NIGERIANBULKSMS_USERNAME'), 'password' => env('NIGERIANBULKSM_PASSWORD'), - ] + ], + 'url' => env('NIGERIANBULKSMS_URL', 'https://portal.nigeriabulksms.com/api/'), ], /*'vonage' => [ 'class' => \App\Libs\Vonage\Sms\Send::class, diff --git a/src/Routes/Sms/Gateways/Nigerianbulksms/Nigerianbulksms.php b/src/Routes/Sms/Gateways/Nigerianbulksms/Nigerianbulksms.php index 5525c1d..e91ad63 100644 --- a/src/Routes/Sms/Gateways/Nigerianbulksms/Nigerianbulksms.php +++ b/src/Routes/Sms/Gateways/Nigerianbulksms/Nigerianbulksms.php @@ -25,7 +25,7 @@ public function init(): mixed 'verbose' => 'true' ]; - $url = $this->url."?username={$pd['username']}&password={$pd['password']}&message={$pd['message']}&sender={$pd['sender']}&mobiles={$pd['mobiles']}&verbose={$pd['verbose']}"; + $url = $this->config['url']."?username={$pd['username']}&password={$pd['password']}&message={$pd['message']}&sender={$pd['sender']}&mobiles={$pd['mobiles']}&verbose={$pd['verbose']}"; return $url; }