I want to check if user authorize my google application, without laravel send an exception.
if($googleService->request('https://www.googleapis.com/oauth2/v1/userinfo'))
echo "Check ok"
else
echo "not check"
But laravel send an exception (Token not found in session, are you sure you stored it?)
I want to check if user authorize my google application, without laravel send an exception. if($googleService->request('https://www.googleapis.com/oauth2/v1/userinfo')) echo "Check ok" else echo "not check"
But laravel send an exception (Token not found in session, are you sure you stored it?)
How can i resolve this ?