Closed dijitalbrains-dev closed 1 year ago
That's an error I haven't seen so far, and I can't reproduce it - could you please share your (redacted where necessary) config and your code in which the error occurs?
Does your service account file contain this exact structure?
{
"type": "service_account",
"project_id": "my-project",
"private_key_id": "xxx",
"private_key": "-----BEGIN PRIVATE KEY-----xxx-----END PRIVATE KEY-----\n",
"client_email": "xxx@yyy.iam.gserviceaccount.com",
"client_id": "123456789",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xxx.iam.gserviceaccount.com"
}
It's also a good idea to try this with a freshly created project with kreait/laravel-firebase
as the only dependency.
I started with this project: https://github.com/suhasrkms/laravel-with-firebase-auth
composer require kreait/laravel-firebase:^4.0 -W
Updated from version kreait/laravel-firebase:^3.0 and I got this error.
Unresolvable dependency resolving [Parameter #0 [
I also faced similar issue and the service account file has exact same structure
if ($projectId = Util::getenv('GOOGLE_CLOUD_PROJECT')) {
return $this->projectId = $projectId;
}
Even if we provide GOOGLE_CLOUD_PROJECT in .env file it still give the error
Concerning suhasrkms/laravel-with-firebase-auth, I'm sorry I can't provide support for other projects, even if they are based on my firebase libraries.
The SDK itself is covered by integration tests that use a credentials file and many projects use it, so I'm quite confident there's no bug there.
If it's a problem with the Laravel package, I'm unable to reproduce it - if you can provide a public example repo with your code where I can reproduce the problem, I can try to find something out. Otherwise, there are too many unknowns for me to be able to give recommendations.
Thanks the issue is resolved and there is no problem with the library. Great Work. How can we close the issue.
Describe the bug
when trying to use cloud messaging this error is triggered not sure why I have the same thing set up in another project just with a previous version 2.3 as it is an old laravel project its working just fine there
Installed packages
PHP version and extensions
Steps to reproduce the issue.
Error message/Stack trace
Additional information
No response