/** * Create an instance of the mozeo driver * * @return MozeoSMS */ protected function createMozeoDriver() { $config = $this->app['config']->get('sms.mozeo', []); $provider = new MozeoSMS(new Client()); $auth = ['companykey' => $config['company_key'], 'username' => $config['username'], 'password' => $config['password']]; $provider->buildBody($auth); return $provider; }
protected function buildMozeo() { $provider = new MozeoSMS(new Client()); $auth = ['companykey' => config('sms.mozeo.companyKey'), 'username' => config('sms.mozeo.username'), 'password' => config('sms.mozeo.password')]; $provider->buildBody($auth); return $provider; }