Skip to content

Commit

Permalink
Merge pull request #73 from arif98741/dev
Browse files Browse the repository at this point in the history
Missing sms.php file Explained with Proper Details
  • Loading branch information
arif98741 authored May 21, 2024
2 parents 888ba00 + 945fa3d commit 03c82f6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ public function setProvider($providerClass): Sender
try {

if ($providerClass === null) {
throw new RenderException("Provider is empty. Be sure to run 'php artisan vendor:publish --provider=Xenon\LaravelBDSms\LaravelBDSmsServiceProvider' and also set provider using setProvider() method. Set default provider from config/sms.php if you use Xenon\LaravelBDSms\Facades\SMS::shoot() facade");
throw new RenderException("Provider is empty. Be sure to run 'php artisan vendor:publish --provider=Xenon\LaravelBDSms\LaravelBDSmsServiceProvider'
and also set provider using setProvider() method. Set default provider from config/sms.php
if you use Xenon\LaravelBDSms\Facades\SMS::shoot() facade. You can also clear your cache");
}

if (!class_exists($providerClass)) {
Expand All @@ -338,9 +340,18 @@ public function setProvider($providerClass): Sender
* @param $response
* @return void
* @throws \JsonException
* @throws RenderException
*/
private function logGenerate($config, $response): void
{
if ($config == null)
{
throw new RenderException("Provider is empty. Be sure to run 'php artisan vendor:publish --provider=Xenon\LaravelBDSms\LaravelBDSmsServiceProvider'
and also set provider using setProvider() method. Set default provider from config/sms.php if
you use Xenon\LaravelBDSms\Facades\SMS::shoot() facade. You can also clear your cache");

}

if ($config['sms_log']) {

if (is_object($response)) {
Expand Down

0 comments on commit 03c82f6

Please sign in to comment.