Closed azzazkhan closed 2 years ago
Please see this issue that describes the same problem
https://github.com/kreait/firebase-php/issues/696#issuecomment-1086661275
Alternatively, have a look at the readme of the package, you'll find the correct usage there. (You need to reference the interface, not the implementation)
(Please excuse the short answer without more links, I'm currently on vacation and have only my phone with me)
Error
Unresolvable dependency resolving [Parameter #0 [ <required> string $projectId ]] in class Kreait\Firebase\Auth\ApiClient
How to reproduce
Code snippet from
web.php
file.Expected behavior
Should resolve dependency without throwing any errors
Environment
OS: Ubuntu 20.04 PHP: 8.1.4 Composer: 2.3.3 laravel/framework: ^9.2 kreait/laravel-firebase: ^4.1