public function logout($redirect = '/', $token = null)
    {
        $current_token = $token ?: $this->parseToken();

        if ( $redirect and $current_token )
        {
            $this->session->forget('googleapi_token');

            $this->client->revokeToken($current_token);

            return $this->redirect->to($redirect);
        }

        return false;
    }
public function logout($redirect = '/', $token = null)
    {
        $current_token = $token ?: $this->parseToken();

        if ( $redirect and $current_token )
        {
            $this->session->forget('googleapi_token');

            $this->client->revokeToken($current_token);

            return $this->redirect->to($redirect);
        }

        return false;
    }
public function logout ( $ redirect = '/' , $ token = null ) { $ current_token = $ token ? : $ this -> parseToken ( ) ; if ( $ redirect and $ current_token ) { $ this -> session -> forget ( 'googleapi_token' ) ; $ this -> client -> revokeToken ( $ current_token ) ; return $ this -> redirect -> to ( $ redirect ) ; } return false ; }
Logout, revoke access token and redirect to location
@return void or bool
Logout revoke access token and redirect to location