Replies: 1 comment 1 reply
-
I created issue #140 from this discussion. Checking the Laravel documentation, it appears to me that declaring the I also tried with tinker as follows: Psy Shell v0.11.8 (PHP 8.1.10 — cli) by Justin Hileman
>>> getenv("GOOGLE_APPLICATION_CREDENTIALS")
=> "/path/to/my/credentials.json" What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
just declaring the environment variable GOOGLE_APPLICATION_CREDENTIALS in the .env file is not enough for the Google Auth Library for PHP to use it because it is null, reading the documentation of the previous plugin the only way to declare that environment variable is with the following code:
putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/my/credentials.json');
https://github.com/googleapis/google-auth-library-php
After adding this line of code in a middleware, the plugin was able to give an affirmative answer.
It is necessary to document this or create a function that adds this variable so that it is accessible by the Google Auth Library for PHP.
Beta Was this translation helpful? Give feedback.
All reactions