src/controllers/SocialRegisterController.php
public function auth($provider_name, &$profile = null) {
        $identifier = null;
        try {
            $provider = $this->hybrid_auth->authenticate($provider_name);
            $userProfile = $provider->getUserProfile();
            $identifier = $userProfile->identifier;
            $profile = $userProfile;
        } catch (\Exception $e) {
            dd($e->getMessage());
        }

        return $identifier;
    }
public function auth($provider_name, &$profile = null) {
        $identifier = null;
        try {
            $provider = $this->hybrid_auth->authenticate($provider_name);
            $userProfile = $provider->getUserProfile();
            $identifier = $userProfile->identifier;
            $profile = $userProfile;
        } catch (\Exception $e) {
            dd($e->getMessage());
        }

        return $identifier;
    }
public function auth ( $ provider_name , & $ profile = null ) { $ identifier = null ; try { $ provider = $ this -> hybrid_auth -> authenticate ( $ provider_name ) ; $ userProfile = $ provider -> getUserProfile ( ) ; $ identifier = $ userProfile -> identifier ; $ profile = $ userProfile ; } catch ( \ Exception $ e ) { dd ( $ e -> getMessage ( ) ) ; } return $ identifier ; }
Prompt the User to authenticate with a social-auth provider

@param $provider_name
@param null $profile
@return null
Prompt the User to authenticate with a social - auth provider