public function initBitly() { $this->shortener->setLogin(env('BITLY_LOGIN')); $this->shortener->setKey(env('BITLY_API_KEY')); $this->shortener->setFormat('json'); }