Skip to content

Commit

Permalink
vendors name config typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 authored Jul 7, 2024
1 parent 5bc57b8 commit 32e6db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SmsChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function initDriver(string $driver = null): void
throw new InvalidArgumentException('No SMS vendor driver configured.');
}

$driverClass = config("sms.vendors.{$active}.driver");
$driverClass = config("sms.providers.{$active}.driver");

if ($driverClass == null || !class_exists($driverClass)) {
throw new DriverNotFoundException("No driver configuration found by `{$active}` name.");
Expand All @@ -46,7 +46,7 @@ private function initDriver(string $driver = null): void

$mode = config('sms.mode', 'sandbox');

$config = config("sms.vendors.{$active}.{$mode}", []);
$config = config("sms.providers.{$active}.{$mode}", []);

$this->driver = App::make($driverClass);

Expand Down

0 comments on commit 32e6db1

Please sign in to comment.