I am using Laravel Socialite in my app. I am using Login with Google
! However, I am getting this cURL error 60: SSL certificate problem: unable to get local issuer certificate
error.
I went through this: cURL error 60: SSL certificate: unable to get local issuer certificate and did the exact steps but still, it won't work.
I tried this in php.ini
:
curl.cainfo="C:\wamp64\bin\php\php7.2.4\extras\ssl\cacert.pem"
Here's my api.php
:
Route::group(['middleware' => 'web'], function() {
Route::get('login/google', function() {
return Socialite::driver('google')->redirect();
});
Route::get('login/google/callback', function() {
$user = Socialite::driver('google')->stateless()->user();
return $user->token();
});
});
I am using php artisan serve
to serve my application. Please help!