original_string: public function socialLogin($serviceName)
      {
          if (config('services.' . $serviceName)) {
              $this->setDynamicRedirectUrl($serviceName);
              return $this->socialite->driver($serviceName)->redirect();
          }
          return redirect('/');
      }
code: public function socialLogin($serviceName)
      {
          if (config('services.' . $serviceName)) {
              $this->setDynamicRedirectUrl($serviceName);
              return $this->socialite->driver($serviceName)->redirect();
          }
          return redirect('/');
      }
code_tokens: public function socialLogin ( $ serviceName ) { if ( config ( 'services.' . $ serviceName ) ) { $ this -> setDynamicRedirectUrl ( $ serviceName ) ; return $ this -> socialite -> driver ( $ serviceName ) -> redirect ( ) ; } return redirect ( '/' ) ; }
docstring: Function responsible for login the user by the given social service.
  
  @param $serviceName string social service name
  
  @return \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\RedirectResponse
docstring_tokens: Function responsible for login the user by the given social service .