title: How to read data from Firebase Database to Laravel
body: <p>I want to read data from my firebase database I have added  Firebase Admin SDK V 5.0 and i have try the following</p>
  <pre><code> $factory = (new Factory)-&gt;withServiceAccount(__DIR__.'/Firebase.json');
  
      $database = $factory-&gt;createDatabase();
      $reference = $database-&gt;getReference('users-dev');
  
      $snapshot = $reference-&gt;getSnapshot();
  
      $value = $snapshot-&gt;getValue();
      
      dd($value);
  </code></pre>
  <p>and I got this
  <a href="https://i.stack.imgur.com/VT230.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VT230.png" alt="enter image description here" /></a></p>
  <p>And on Firebase data are like
  <a href="https://i.stack.imgur.com/j2FGc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j2FGc.jpg" alt="enter image description here" /></a></p>