public function handleProviderCallback($provider)
    {
        try {
            $user = $this->socialProvider->driver($provider)->user();
        } catch (Exception $e) {
            return Redirect::to('auth/' . $provider);
        }

        $this->auth->login($this->users->provider($provider)->findOrCreateUser($user), true);

        return redirect()->intended($this->redirectPath());
    }
public function handleProviderCallback($provider)
    {
        try {
            $user = $this->socialProvider->driver($provider)->user();
        } catch (Exception $e) {
            return Redirect::to('auth/' . $provider);
        }

        $this->auth->login($this->users->provider($provider)->findOrCreateUser($user), true);

        return redirect()->intended($this->redirectPath());
    }
public function handleProviderCallback ( $ provider ) { try { $ user = $ this -> socialProvider -> driver ( $ provider ) -> user ( ) ; } catch ( Exception $ e ) { return Redirect :: to ( 'auth/' . $ provider ) ; } $ this -> auth -> login ( $ this -> users -> provider ( $ provider ) -> findOrCreateUser ( $ user ) , true ) ; return redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; }
Obtain the user information from social network.

@param $provider
@return \Illuminate\Http\RedirectResponse
Obtain the user information from social network .