/home/techb158/ileadtechnology.com/SSM/app/Jobs
Edit: /home/techb158/ileadtechnology.com/SSM/app/Jobs/SendSMS.php (1638B)
numbers = $numbers;
$this->sms = $sms;
}
/**
* Execute the job.
*
* @return void
*/
public function handle(ConfigurationRepository $config)
{
$config->setDefault();
$prefix = (config('config.sms_gateway') == 'custom' && config('config.custom_sms_api_number_prefix')) ? config('config.custom_sms_api_number_prefix') : '';
if (config('config.custom_sms_api_accepts_multiple_receiver')) {
$to = array();
foreach ($this->numbers as $number) {
$to[] = $prefix.$number;
}
$to = implode(',', $to);
$this->send([
'to' => $to,
'sms' => $this->sms
]);
} else {
foreach ($this->numbers as $number) {
$this->send([
'to' => $prefix.$number,
'sms' => $this->sms
]);
}
}
}
}