Skip to content

Commit

Permalink
config class location typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed May 18, 2024
1 parent 53398d5 commit 9cba736
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.providers.{$active}.driver");
$driverClass = config("sms.vendors.{$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.providers.{$active}.{$mode}", []);
$config = config("sms.vendors.{$active}.{$mode}", []);

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

Expand Down

0 comments on commit 9cba736

Please sign in to comment.