SimpleSoftwareIO\SMS\DriverManager::createEztextingDriver PHP Method

createEztextingDriver() protected method

Create an instance of the EZTexting driver.
protected createEztextingDriver ( ) : EZTextingSMS
return SimpleSoftwareIO\SMS\Drivers\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;
    }