Laravel 5 宅地上的社会名流正在失败

Laravel 5 宅地上的社会名流正在失败,laravel-5,homestead,laravel-socialite,Laravel 5,Homestead,Laravel Socialite,我按照步骤安装socialite,当我重定向回网站后,我发现这个错误。我试图找到根本原因,但没有找到 in Middleware.php line 68 at Middleware::GuzzleHttp\{closure}(object(Response)) in Promise.php line 199 at Promise::callHandler('1', object(Response), array(object(Promise), object(Closur

我按照步骤安装socialite,当我重定向回网站后,我发现这个错误。我试图找到根本原因,但没有找到

    in Middleware.php line 68
    at Middleware::GuzzleHttp\{closure}(object(Response)) in Promise.php line 199
    at Promise::callHandler('1', object(Response), array(object(Promise), object(Closure), null)) in Promise.php line 165
    at Promise::GuzzleHttp\Promise\{closure}(object(Response)) in FulfilledPromise.php line 39
    at FulfilledPromise::GuzzleHttp\Promise\{closure}() in TaskQueue.php line 60
    at TaskQueue->run() in CurlMultiHandler.php line 96
    at CurlMultiHandler->tick() in CurlMultiHandler.php line 123
    at CurlMultiHandler->execute(true) in Promise.php line 240
    at Promise->invokeWaitFn() in Promise.php line 217
    at Promise->waitIfPending() in Promise.php line 261
    at Promise->invokeWaitList() in Promise.php line 219
    at Promise->waitIfPending() in Promise.php line 62
    at Promise->wait() in Client.php line 130
    at Client->request('get', 'https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ'))) in Client.php line 88
    at Client->__call('get', array('https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ')))) in GoogleProvider.php line 86
    at Client->get('https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ'))) in GoogleProvider.php line 86
    at GoogleProvider->getUserByToken('ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ') in AbstractProvider.php line 188
    at AbstractProvider->user() in AuthController.php line 85
    at AuthController->handleProviderCallback('google')
    at call_user_func_array(array(object(AuthController), 'handleProviderCallback'), array('provider' => 'google')) in Controller.php line 255
    at Controller->callAction('handleProviderCallback', array('provider' => 'google')) in ControllerDispatcher.php line 163
    at ControllerDispatcher->call(object(AuthController), object(Route), 'handleProviderCallback') in ControllerDispatcher.php line 111

我追查到了错误,它与guzzle一点关系都没有,它是必须处理GoogleAPI的。您需要从开发者控制台启用Google+API。否则,您将出现此错误,这基本上意味着禁止您访问Google+信息