Наследование: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface, use trait SimpleSoftwareIO\SMS\MakesRequests
Пример #1
0
 /**
  * Create an instance of the EZTexting driver.
  *
  * @return EZTextingSMS
  */
 protected function createEztextingDriver()
 {
     $config = $this->app['config']->get('sms.eztexting', []);
     $provider = new EZTextingSMS(new Client());
     $data = ['User' => $config['username'], 'Password' => $config['password']];
     $provider->buildBody($data);
     return $provider;
 }
Пример #2
0
 protected function buildEZTexting()
 {
     $provider = new EZTextingSMS(new Client());
     $data = ['User' => config('sms.eztexting.username'), 'Password' => config('sms.eztexting.password')];
     $provider->buildBody($data);
     return $provider;
 }