Closed jatinbphp closed 1 year ago
Hey there 👋,
the method indeed returns a Generator (https://firebase-php.readthedocs.io/en/stable/user-management.html#list-users) that you can either iterate through, for example, with foreach()
or convert it to an array with iterator_to_array()
in order to be able to use print_r()
.
With projects having hundreds of thousands of users (including anonymous users) a Generator is the most efficient way to get them.
Thank you very much. It works as you mentioned.!!!!
Hello,
I want to get all firebase auth users.
I have installed package and followed all instruction like below FIREBASE_CREDENTIALS=/var/www/html/project/firebase.json
than in my controller use Kreait\Laravel\Firebase\Facades\Firebase;
In my method: $appAuth = Firebase::project('app')->auth();
I am getting "Generator Object ( )" as output. Not sure if I am doing anything wrong or not. Please guide.