src/Gzero/Social/Controller/SocialAuthController.php
public function socialLogin($serviceName)
    {
        if (config('services.' . $serviceName)) {
            $this->setDynamicRedirectUrl($serviceName);
            return $this->socialite->driver($serviceName)->redirect();
        }
        return redirect('/');
    }
public function socialLogin($serviceName)
    {
        if (config('services.' . $serviceName)) {
            $this->setDynamicRedirectUrl($serviceName);
            return $this->socialite->driver($serviceName)->redirect();
        }
        return redirect('/');
    }
public function socialLogin ( $ serviceName ) { if ( config ( 'services.' . $ serviceName ) ) { $ this -> setDynamicRedirectUrl ( $ serviceName ) ; return $ this -> socialite -> driver ( $ serviceName ) -> redirect ( ) ; } return redirect ( '/' ) ; }
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
Function responsible for login the user by the given social service .