protected function obtainOAuthClientData()
    {
        $oauth = resolve(\Acacha\LaravelSocial\Services\OAuthApp::class);
        $oauth->setId(trim($this->command->ask('OAuth client id?')));
        $oauth->setSecret(trim($this->command->ask('OAuth client secret?')));
        $oauth->setRedirectUrl(trim($this->command->ask('OAuth client redirect URL?', $this->getDefaultRedirectURL())));

        $service = resolve(\Acacha\LaravelSocial\Services\LaravelSocialiteService::class);
        $service->app($oauth)->social(strtolower($this->name()))->handle();
        $this->command->info(ucfirst($this->name()) . ' added to config/services.php file');
    }
protected function obtainOAuthClientData()
    {
        $oauth = resolve(\Acacha\LaravelSocial\Services\OAuthApp::class);
        $oauth->setId(trim($this->command->ask('OAuth client id?')));
        $oauth->setSecret(trim($this->command->ask('OAuth client secret?')));
        $oauth->setRedirectUrl(trim($this->command->ask('OAuth client redirect URL?', $this->getDefaultRedirectURL())));

        $service = resolve(\Acacha\LaravelSocial\Services\LaravelSocialiteService::class);
        $service->app($oauth)->social(strtolower($this->name()))->handle();
        $this->command->info(ucfirst($this->name()) . ' added to config/services.php file');
    }
protected function obtainOAuthClientData ( ) { $ oauth = resolve ( \ Acacha \ LaravelSocial \ Services \ OAuthApp :: class ) ; $ oauth -> setId ( trim ( $ this -> command -> ask ( 'OAuth client id?' ) ) ) ; $ oauth -> setSecret ( trim ( $ this -> command -> ask ( 'OAuth client secret?' ) ) ) ; $ oauth -> setRedirectUrl ( trim ( $ this -> command -> ask ( 'OAuth client redirect URL?' , $ this -> getDefaultRedirectURL ( ) ) ) ) ; $ service = resolve ( \ Acacha \ LaravelSocial \ Services \ LaravelSocialiteService :: class ) ; $ service -> app ( $ oauth ) -> social ( strtolower ( $ this -> name ( ) ) ) -> handle ( ) ; $ this -> command -> info ( ucfirst ( $ this -> name ( ) ) . ' added to config/services.php file' ) ; }
Obtain OAuth client data.
Obtain OAuth client data .