title: Laravel Filesystem: Managing Folders in Google Drive API
body: <p>I am following this tutorial:-
  <a href="https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011" rel="nofollow noreferrer">https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011</a></p>
  
  <p>My Laravel application requires files to be organized inside a folder. So, whenever a file is uploaded it should be saved inside a folder that it belongs to.</p>
  
  <p>Before uploading a file, I must check whether the folder exists or not. In Laravel, I have used this method to list all the directories at root.</p>
  
  <pre><code>$directories = Storage::directories();
  </code></pre>
  
  <p>However, it returns a list of alphanumeric unique ids with no references to the human readable names. I don't want to create duplicate folder even though it is possible in Google drive.</p>
  
  <p>So, how do we get list of <code>folder names</code> along with reference id?</p>