For those that still need a solution, here it is.
$providerUser = Socialite::driver('facebook')
->setHttpClient(new GuzzleHttpClient(['verify' => false]))
->user();
Note the ['verify' => false]
, this disables the SSL certificate verification check done by the Guzzle HTTP client which is used by Socialite. It might also be a good idea to export this into the configuration as a setting.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…